Random value generator with a seed.
const rand1 = new Random(); const rand2 = new Random(12345); // with seed console.log(rand1.next()); console.log(rand1.nextInt(1, 10));
Returns next random value.
Returns next random value with the bound from min to max, which includes min and max.
min
max
Generated using TypeDoc
Random value generator with a seed.
const rand1 = new Random(); const rand2 = new Random(12345); // with seed console.log(rand1.next()); console.log(rand1.nextInt(1, 10));