SA-MP Forums Archive
i need help with random function - 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: i need help with random function (/showthread.php?tid=414684)



i need help with random function - akki - 10.02.2013

i need your help
i want to create a function that generates a random number
i have tried searching on ****** a lot but did not find anything. i want to generate any random number and as many i want.
if it is not clear please tell me i will explain you more
please help


Re: i need help with random function - ReVo_ - 10.02.2013

random(max);


Re: i need help with random function - dusk - 10.02.2013

https://sampwiki.blast.hk/wiki/Random


Re: i need help with random function - akki - 10.02.2013

Quote:
Originally Posted by ReVo_
Посмотреть сообщение
random(max);
you mean by keeping the 'r' capitals or small coz capitals is not workking
i mean it give error


Re: i need help with random function - Neil. - 10.02.2013

Quote:
Originally Posted by akki
Посмотреть сообщение
you mean by keeping the 'r' capitals or small coz capitals is not workking
i mean it give error
Use a small 'r'.