Guest User

Untitled

a guest
May 26th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. // random number. Default: maximum of 4 digits
  2. function rand(maxDigits){
  3. var m = Math;
  4. return m.floor(
  5. m.random() * m.pow(10, maxDigits || 4)
  6. );
  7. }
Add Comment
Please, Sign In to add comment