Random Numbers

I know how to get a random number

but if i needed the numbers to be between 1-10 but instead of each number having a 10 percent chance of coming out made it 1 has a 50 percent chance 2 a 42 percent chance and the rest of the numbers a 1 percent chance. could i do this and how?

Comments

Sign In or Register to comment.