Returns false with the given probability p. Is equivalent to uniform() >= p. The probability of true is 1 - p correspondingly.
- Parameters
-
Name Type Description p double The probability of false. - Result
-
Type Description boolean false with probability p, true with probability 1 - p.
Returns false with the given probability p, using the specified random number generator.
- Parameters
-
Name Type Description p double The probability of false. r java.util.Random The random number generator. - Result
-
Type Description boolean false with probability p, true with probability 1 - p.
-
How can we improve this article?
-