javascript generate random number between min and max code example Example: random number in js Math.random() returns a random number in [0,1)