DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js random number between 1 and 5
const
rndInt
=
Math
.
floor
(
Math
.
random
(
)
*
6
)
+
1
console
.
log
(
rndInt
)
Run
code snippet
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#js
#random
#number
ADD COMMENT
Topic
COMMENT
Name
7+8 =
Submit