/ Published in: JavaScript
Expand |
Embed | Plain Text
function randomFromTo(from, to){ return Math.floor(Math.random() * (to - from + 1) + from); }
You need to login to post a comment.
function randomFromTo(from, to){ return Math.floor(Math.random() * (to - from + 1) + from); }
You need to login to post a comment.