generate a random number in javascript console code example Example: javascript random number between Math.floor(Math.random() * 6) + 1