03.03.2012, 03:29
pawn Код:
MakeNumber()
{
Number[0] = random(49);
Number[1] = random(49);
Number[2] = random(49);
Number[3] = random(49);
Number[4] = random(49);
Number[5] = random(10);
Number[6] = random(10);
for(new i = 0; i <= 4; ++i ) {
if(Number[i] == Number[i]) {
Number[i] = Random(49);
}
}
if(Number[5] == Number[6])
Number[5] = random(10);
}