randInt

The Math.randInt() method returns a random integer number in a given range

Syntax

Math.randInt(a,b)

Returns

a random integer number in a given range

Parameters

a (integer)
start index low
b (integer)
stop index high