Generate Random number from 1 to N
Below little script helps you in generating random number between 1 to N.
var random = Math.floor(Math.random() * N + 1);
A Technical Guide for Developers.
Generate Random number from 1 to N
Below little script helps you in generating random number between 1 to N.
var random = Math.floor(Math.random() * N + 1);
Copyright © 2013 TechniqZone.
0 comments:
Post a Comment