1 min read

Random integer number

A random selection highlighted within a clearly bounded range.

Create a random int number

getRandomInt(max) {
    return Math.floor(Math.random() * max);
}