Booleans

Returns random boolean values with different probabilities.

API

Booleans.java
class Booleans {
  Booleans(FakeDataService fakeDataService)
  boolean coinFlip()     (1)
  boolean either()     (2)
  boolean diceRollOf6()     (3)
  boolean any()     (4)
}
1 coinFlip()

Same as #any() , 50:50 chance of true or false.

2 either()

Same as #any() , 50:50 chance of true or false.

3 diceRollOf6()

A 1 in 6 chance of returning true.

4 any()

50:50 chance of true or false.

Members

coinFlip()

Same as #any() , 50:50 chance of true or false.

either()

Same as #any() , 50:50 chance of true or false.

diceRollOf6()

A 1 in 6 chance of returning true.

any()

50:50 chance of true or false.