Click or drag to resize
StdRandomBernoulli Method
Returns a random boolean from a Bernoulli distribution with success probability 1/2.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public static bool Bernoulli()

Return Value

Type: Boolean
true with probability 1/2 and false with probability 1/2
See Also