(rontolisp) docs
← Functions

linalg:seed

(linalg:seed n)

Resets the shared linalg random generator deterministically from a non-negative integer seed and returns n. The generator is a Wichmann-Hill combination whose draws are exact integer arithmetic plus IEEE double operations, so a seeded linalg:rand / linalg:randn / linalg:uniform / linalg:choice / linalg:permutation sequence is bit-identical on every backend (interpreter, JVM and WASM).