# Flash script random percentage fun game design

**URL:** <https://forum.kirupa.com/t/flash-script-random-percentage-fun-game-design/331019>\
**Category:** Uncategorized\
**Created:** [April 27, 2013, 10:31pm UTC](https://forum.kirupa.com/t/flash-script-random-percentage-fun-game-design/331019 "2013-04-27T22:31:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ilias\_kafetzaki](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ilias\_kafetzaki](https://forum.kirupa.com/u/ilias_kafetzaki)\
**Post date:** [April 27, 2013, 10:31pm UTC](https://forum.kirupa.com/t/flash-script-random-percentage-fun-game-design/331019/1 "2013-04-27T22:31:11Z")

</div>

I can do basic random scripts as its well documented but this is a bit difficult for me. So the game is 3 prizes 10 cards. I have 10 cards face down and numbered 1 -10 .

part 1 - I turn a card and one of the prize is randomly selected with a %75 chance on winning and %25 on losing.

part 2 - If a card is chosen all the remaining cards are turned round with random scatter of the remaining prizes and lose so it seems that there was a lose or prize under the chosen card the whole time.

Any help would be greatly appreciated. Help with coding or forward me to a tutorial for part 1 and 2. If you knock up a quick code then lets assign a,b,c as prizes
