Return a random number between 1 and 100. In this snippet you can find a way of generating a random number between two numbers. RandomBetween 1 10.
Function randomBetween min max return Mathfloor Mathrandom max - min 1 min.
Previous JavaScript Math Object Next. Simple tweak can be used to generate random number between give two numbers. Mathfloor Mathrandom 9 - 10. This simple one line of code will return you a number between 1 and 6 both included.