/ Published in: JavaScript
Uses vars `to` and `from`.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Math.floor(Math.random() * (to - from + 1) + from);