returns a boolean random generator with a probability
p to have
true value. For example
$bernoulli60 := @rnd_bernouilli(0.6) $t := [ $bernoulli60() | (1000) ]
produces a tab of 1000 random boolean values with a probability of 0.6 to be true.
The members of the
@rnd_distribution family return a random generator
in the form of an impure function
f taking no argument. Each time
is called, the value of a random variable following the
distribution is returned. The arguments of the
the parameters of the distribution. Two successive calls to
@rnd_distribution returns two different random generators for the same
distribution, that is, generators with unrelated seeds.