question: @ Override public Value sample ( Assignment condition ) { double prob = getProb ( condition ) ; if ( sampler . nextDouble ( ) < prob ) { return ValueFactory . create ( true ) ; } else { return ValueFactory . create ( false ) ; } }
target:  Generates a sample from the distribution given the conditional assignment.