@std/random

Getting Started

No install step: the module ships inside the compiler. Import what you need:

.rnx
import { Rng } from "@std/random";

Quickstart

Copy this into a file or open it straight in the playground:

.rnx
import { Rng } from "@std/random";

let r = Rng.seeded(7);
print(r.int(1, 10));