Rock Papers Scissors


#1

Instead of creating a range from 0-1 with decimals by only using Math.random(), why not create a range of whole numbers from 0-10 using the following:

Math.floor(Math.random()*10)+1

I notice that the compiler outputs the random numbers from 0-10, but it only outputs "rock". Why isn't it outputting the other options (i.e. paper, scissors)?


#2

If you could share the code you are using....??
Maybe we could find an explanation for your missing paper & scissors.