bool
rand::bool(probability?) -> boolRandom boolean, optionally true with probability 0.0..=1.0.
Random values, ranges, and collection sampling.
boolrand::bool(probability?) -> boolRandom boolean, optionally true with probability 0.0..=1.0.
bytesrand::bytes(n) -> bytesRandom bytes of length n.
choicerand::choice(list|string|bytes) -> OptionRandom element, or None for an empty input.
floatrand::float() / rand::float(max) / rand::float(min, max) -> floatRandom float in a half-open range.
intrand::int() / rand::int(max) / rand::int(min, max) -> intRandom integer. Bounded forms use half-open ranges.
samplerand::sample(list|bytes, n) -> list|bytesRandom sample without replacement.
shufflerand::shuffle(list|bytes) -> list|bytesShuffled copy.