Edit This Code:
See Result »
Math.random() returns a random number between 0 and 1.
Try it
Result: