DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
generate random whole numbers within a range
function roundWholeNum(){ return Math.floor(Math.random() * 20); } console.log(roundWholeNum());
Source by pynative.com #
PREVIOUS
NEXT
Tagged:
#generate
#random
#numbers
#range
ADD COMMENT
Topic
COMMENT
Name
6+6 =
Submit