Posted By

jonathanpglick on 11/23/10


Tagged


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

verostudios


Javascript Random number between


 / Published in: JavaScript
 

Uses vars to and from.

  1. Math.floor(Math.random() * (to - from + 1) + from);

Report this snippet  

You need to login to post a comment.