random-int
Usage
import {randomUIntBelow} from "random-int"
`randomUIntBelow(max)` returns a random non-negative integer less than max `(0 <= output < max)`. `max` must be at most 2^53.
randomUIntBelow(4); // Generates a uniform random value from [0, 1, 2, 3].
License
MIT