random
Math.random() returns a floating point number between 0 and 1. parseInt(Math.random()*6+1) is throwing a dice.
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Math.random() returns a floating point number between 0 and 1. parseInt(Math.random()*6+1) is throwing a dice.