I want to take a single digit number input by the user and generate another single digit random number based on it. A real world equivalent would be a roulette or slot machine that starts at a specific value and then randomizes.
This will generate a random number from 1-10, but does not involve any existing number as input.
var randomnumber=Math.floor(Math.random()*10) 
Is this possible?
 
     
     
     
    