Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js math random

var n = Math.random();
n = Math.floor((n * 6) + 1); // if you want your numbers to start at 1 and end at 6 
console.log(n);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #math #random
ADD COMMENT
Topic
Name
4+3 =