Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

random integers

Math.floor(Math.random() * 10) + 1; // returns a random integer from 1 to 10
Math.floor(Math.random() * 100) + 1; // returns a random integer from 1 to 100
Source by github.com #
 
PREVIOUS NEXT
Tagged: #random #integers
ADD COMMENT
Topic
Name
4+9 =