function x = sample_tabular(bnode, bnet)
% SAMPLE_TABULAR Draw a random sample from Pr(self | observed parents) for a tabular node.
% x = sample_tabular(bnode, bnet)

CPT = cond_dist_tabular(bnode, bnet);
x = sample_discrete(CPT);
