Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

random number javascript

var randomNumberBetween0and19 = Math.floor(Math.random() * 20);

function randomWholeNum() {
  // Only change code below this line.
  return Math.floor(Math.random() * 10);
}
Source by forum.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #random #number #javascript
ADD COMMENT
Topic
Name
3+5 =