Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js random

function randint(low, max) {
  return Math.round(Math.random() * 10) % (max ?? low) + (max ? low : 0);
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #js #random
ADD COMMENT
Topic
Name
9+5 =