sammy
02-07-2002, 11:16 PM
I'm making a keno game and I need 20 random numbers, that do not repeat.
I'm new with arrays, and flash 5 scripting (Deleted Falsh 4)
If someone could please help, I'll stop banging my head against the wall!
Sammy
myArray=(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33 ,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,5 0,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66, 67,68,69,70,71,72,73,74,75,76,77,78,79);
v = random(myarray)+1;
tellTarget (this.v) {
play ();
}
if (v<=40) {
t = t+1;
} else {
b = b+1;
}
I'm new with arrays, and flash 5 scripting (Deleted Falsh 4)
If someone could please help, I'll stop banging my head against the wall!
Sammy
myArray=(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, 17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33 ,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,5 0,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66, 67,68,69,70,71,72,73,74,75,76,77,78,79);
v = random(myarray)+1;
tellTarget (this.v) {
play ();
}
if (v<=40) {
t = t+1;
} else {
b = b+1;
}