randomInt

Generates a random integer between two given numbers, including those numbers.

It uses crypto.getRandomValues to generate the random number.

Example