DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
generate random number javascript
function
randomNumber
(
min
,
max
)
{
return
Math
.
floor
(
Math
.
random
(
)
*
(
max
-
min
)
)
+
min
;
}
PREVIOUS
NEXT
Tagged:
#generate
#random
#number
#javascript
ADD COMMENT
Topic
COMMENT
Name
6+7 =
Submit