function y = sample_logistic(bnode, bnet)
% SAMPLE_LOGISTIC  Draw a random sample from a logistic node.
% y = sample_logistic(bnode, bnet)

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




