envzn
0.8 · beta · not released

Library / System / Randomness / Random

INTERFACEEXTENDS Shuffler

Random

Random — the full random / pseudo-random surface, extending Shuffler with wider-range, 128-bit, float, and boolean draws. Implemented by CasualRandom (fast, OS-seeded), SeededRandom (deterministic from a developer seed), and SecureRandom (OS entropy). A Random instance is thread-affine: it is not a SHARED CLASS, so it cannot be shared across a thread boundary — a non-owning capture into a PARALLEL body is rejected, while a sole-ownership move is permitted and data-race-safe.

Methods 3

MODIFY METHOD nextUInt128() RETURNS uint128
modifies

A full-width 128-bit random value (two engine draws).

MODIFY METHOD nextFloat() RETURNS float64
modifies

Uniform random float64 in [0, 1) (53-bit mantissa).

MODIFY METHOD nextBoolean() RETURNS boolean
modifies

Uniform random boolean (the engine's top bit).