I need a bit of help putting this bit together. 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.

I found this but dont know if I can use it for part 1, is it even compatible with AS3 in CS4?. I dont understand =14 =69. Also help with part 2 is needed.

Code:
on (release) {

var engine = random(99); var randomnumber;

//This tells us that you have a 15% chance of getting the number 18 if (engine>=0 && engine<=14) { randomnumber = 18; } else if (engine>=15 && engine<=69)

{ //This tells us we have a 55% chance of having the number 12 randomnumber = 12; } else { //this is the remainding percentage which is accorded to "9". randomnumber = 9; }