示例#1
0
 /**
  * Creates a boolean generator with the given probability of generating a <i>false</i> value
  * (1.0-falseProbability) is the probability of generating a <i>true</i> value
  *
  * @param falseProbability Probability of generating a <i>false</i> value
  */
 public BooleanGenerator(double falseProbability) {
   this.falseProbability = falseProbability;
   g = Random.get();
 }
示例#2
0
 /**
  * Creates a boolean generator with the same probability of generating a <i>true</i> and
  * <i>false<i> value
  */
 public BooleanGenerator() {
   g = Random.get();
 }