how to generate a random number between 1 and 3 in js code example Example: javascript random number between 0 and 10 Math.floor(Math.random() * 10);