Make multiple randoms - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Make multiple randoms (
/showthread.php?tid=553969)
Make multiple randoms -
DiamantEspace18 - 01.01.2015
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
Re: Make multiple randoms -
Schneider - 01.01.2015
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
Re : Make multiple randoms -
DiamantEspace18 - 01.01.2015
Oh thanks