Edit This Code:
See Result »
Math.floor() combined with Math.random() can return random integers.
Try it
Result: