Rock Papers Scissors


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:


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)?


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