Nimony

The road to Nim 3

random

nimony/lib/std/random.nim

A fast, non-cryptographic pseudo-random number generator (xoroshiro128+).

Each proc has two forms: one taking an explicit Rand state, and one using a shared default generator. The default-generator procs are not thread-safe — give each thread its own Rand via initRand.