Mace1289 0 Newbie Poster

Hello everyone!

I have a question for whom ever can answer it. Im creating a board game in which cards need to be drawn when you land on a spot that instructs you to do so. Just like when you land on a chance square in Monopoly, and just like in the game I need it to be random card that shows up

So with that being said I need a script that does the following.

When you click a button that says "Draw" it will direct you to one of the cards [Image] that can be used, but I need it to be randomized. So as an example, you Click the "Draw" button and it randomly goes to a green card, or a blue card, or a red card.

Now I don't know if you can just add a value to a card to make it have a higher chance of being picked, or if I should just use the same card [Image] more then once, but with a different name so it can have a higher chance to be drawn

Thank you to anyone who can help me with this question!!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.