random javascript data code example
Example 1: javascript random number between
Math.floor(Math.random() * 6) + 1
Example 2: random number in js
Math.random() returns a random number in [0,1)
Math.floor(Math.random() * 6) + 1
Math.random() returns a random number in [0,1)