def prior_sample(bn):
event = {}<EOL>for node in bn.nodes:<EOL><INDENT>event[node.variable] = node.sample(event)<EOL><DEDENT>return event<EOL>
Randomly sample from bn's full joint distribution. The result
    is a {variable: value} dict. [Fig. 14.13]