function y = sample_softmax(bnode, bnet)
% SAMPLE_SOFTMAX  Draw a random sample from a softmax node.
% y = sample_softmax(bnode, bnet)

CPT = cond_dist_softmax(bnode, bnet);
y = sample_discrete(CPT, 1, 1);




