Make multiple randoms
#1

Yo , I search how can I do a random system who don't take one solution 80 possibilities for exemple but I would like to do a system who take a defined number like 60 , 60 solutions of 80 possibilities .

So thanks to the future help
Reply
#2

pawn Код:
for(new i; i<60; i++)
{
    new result = random(80);
}
...or:

pawn Код:
new result[60];
for(new i; i<60; i++)
{
    result[i] = random(80);
}
This will give you 60 numbers between 0 and 79
Reply
#3

Oh thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)