AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   rand () (https://forums.alliedmods.net/showthread.php?t=173000)

dj_freeze 11-28-2011 16:10

rand ()
 
Hello.. I was wondering if it is a rand() function in amxmodx like in C++? And if not how to make it? I need a function that will randomly choose a number from (a;b) interval.

Edit: found this kind of code: random_num(0,100) is this a standard function for random numbers in (0,100) interval?

Korxu 11-28-2011 16:11

Re: rand ()
 
random_num ( x, y )

dj_freeze 11-28-2011 16:16

Re: rand ()
 
Quote:

Originally Posted by Korxu (Post 1604348)


Many thanks :)

fysiks 11-28-2011 21:54

Re: rand ()
 
Quote:

Originally Posted by dj_freeze (Post 1604347)
Edit: found this kind of code: random_num(0,100) is this a standard function for random numbers in (0,100) interval?

Reading the documentation helps.

B3N4K 11-29-2011 15:21

Re: rand ()
 
And THIS should be in your bookmarks. First place whene you are looking for any function.


All times are GMT -4. The time now is 08:32.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.