Get a cryptographically secure random integer between min (inclusive) and max (exclusive).
min
max
randomInt(1, 10); // a random integer >= 1 and < 10randomInt({ min: 1, max: 10 }); // a random integer >= 1 and < 10 Copy
randomInt(1, 10); // a random integer >= 1 and < 10randomInt({ min: 1, max: 10 }); // a random integer >= 1 and < 10
Optional
Get a cryptographically secure random integer between
min(inclusive) andmax(exclusive).Example