StdRandomBernoulli Method |
Returns a random boolean from a Bernoulli distribution with success
probability 1/2.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool Bernoulli()
Return Value
Type:
Booleantrue with probability 1/2 and
false with probability 1/2
See Also