Returns a random integer between min (inclusive) and max (exclusive).
import { randomInteger } from "daily-prng";const min = 0;const max = 3;const actual = randomInteger(min, max);console.log(actual); // 2 Copy
import { randomInteger } from "daily-prng";const min = 0;const max = 3;const actual = randomInteger(min, max);console.log(actual); // 2
Generated using TypeDoc
Returns a random integer between min (inclusive) and max (exclusive).
Example