Testing module

rng_chance

procedure · 1 overloadsince 0.30.0Source

True once in one_in calls on average.

rng_chance :: (rng: *Rng, one_in: s64) -> bool

True once in one_in calls on average.

Parameters

rng: *Rng
the generator to draw from.
one_in: s64
the odds, 1 in this many; below 1 counts as 1.

Returns

bool

See also