Edit The Code:
See Result »
Try it Yourself - ©
w3ii.com
Math.floor() combined with Math.random() can return random integers.
Try it