@Override public Assignment sample(){
  if (!samples.isEmpty()) {
    int selection=sampler.nextInt(samples.size());
    Assignment selected=samples.get(selection);
    return selected;
  }
 else {
    log.warning("distribution has no samples");
    return new Assignment();
  }
}

@ Override public Assignment sample ( ) { if ( ! samples . isEmpty ( ) ) { int selection = sampler . nextInt ( samples . size ( ) ) ; Assignment selected = samples . get ( selection ) ; return selected ; } else { log . warning ( "distribution has no samples" ) ; return new Assignment ( ) ; } }
samples from the distribution . in this case , simply selects one arbitrary sample out of the set defining the distribution
