Returns an iterator of random bits, with 1's occurring w/ given probability prob (in the [0,1] interval). If num is given, only that many bits will be produced.
By default, uses system PRNG, but a custom {@link @thi.ng/random#IRandom} impl can be provided via rnd arg.
Returns an iterator of random bits, with 1's occurring w/ given probability
prob
(in the [0,1] interval). Ifnum
is given, only that many bits will be produced.By default, uses system PRNG, but a custom {@link @thi.ng/random#IRandom} impl can be provided via
rnd
arg.