DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
dice roller javascript
const throwdice = () => ~~(Math.random() * 6) + 1; // Examples throwdice(); //2
PREVIOUS
NEXT
Tagged:
#dice
#roller
#javascript
ADD COMMENT
Topic
COMMENT
Name
3+3 =
Submit