Pseudo-random number generation — PCG-64 thread-local PRNG with rand_seed reproducibility.
loft install random
use random;
| Guide | getting started with random |
|---|---|
| Version | 0.3.6 — published 2026-10-06 |
| Categories | Mathematics · Randomness |
| Requires | loft >=2026.10.0 |
| Compatibility | API: drop-in for 0.3.0 and later · stored data: drop-in for 0.3.0 and later |
| Download | 18 kB |
| Public API | 7 items, with their documentation |
| Dependencies | none |
| Used by | no other registry package — you would be the first |
| Source | read it here — the libraries are written in loft |
| Repository | https://github.com/loft-lang/loft-libs-core/tree/main/random |
A drop-in floor is the oldest release of this package the current one still replaces without a source change. Not declared means exactly that — the package has made no promise, which is the honest state for one published before the compatibility contract existed.