I need this for a game I'm writing.
I intend to sort integers into different "cards," each "card" representing an image to be displayed inside a picture box. I want the following:
If the random number is between 0 and 4, display a $250 "money card"
If the random number is between 5 and 9, display a $500 "money card"
And so on... all the way to 40, then I want this:
If the random number is between 40 and 44, display a bust card.
If the random integer is between 45 and 48, display a bust other card.
If the random integer equals 50, display the winner card.
How would I convert this to code?