/ Published in: JavaScript
Uses vars to and from.
Expand |
Embed | Plain Text
Math.floor(Math.random() * (to - from + 1) + from);
You need to login to post a comment.
jonathanpglick on 11/23/10
1 person have marked this snippet as a favorite
Uses vars to and from.
Math.floor(Math.random() * (to - from + 1) + from);
You need to login to post a comment.