random number 1 - 6 js code example Example: javascript random number between Math.floor(Math.random() * 6) + 1