print random number in js from 1 to 10 code example Example: javascript random number between Math.floor(Math.random() * 6) + 1