This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 11/4/2026.

Rand

import std/rand

std/rand — randomness from the host's cryptographic source.

rand.kz · 2 tors

std/rand — randomness from the host's cryptographic source. The gap this closes: Java's ThreadLocalRandom — ambient, OS-seeded, no seed threading through your flow. std.crypto.random IS that, seeded by the OS; these tors are just its honest branch surface. Usage: import std/rand std/rand:between(lo: 1, hi: 7): f |> ... std/rand:below(n: 6): v |> ...