envzn
0.8 · beta · not released

Library / System / Randomness / Shuffler

INTERFACE

Shuffler

Shuffler — the narrow random-source capability: a single bounded integer draw. Consumers that only need to pick an index (e.g. Array.shuffle) depend on this, not the full Random surface.

Methods 1

MODIFY METHOD nextInt(int64 bound) RETURNS int64
modifies

Uniform random integer in [0, bound). bound <= 0 raises RandomError. MODIFY because drawing advances generator state.