Raised This Month: $ Target: $400
 0% 

rand ()


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 11-28-2011 , 16:10   rand ()
Reply With Quote #1

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?
__________________

Last edited by dj_freeze; 11-28-2011 at 16:13.
dj_freeze is offline
Send a message via Skype™ to dj_freeze
Korxu
Senior Member
Join Date: Sep 2010
Old 11-28-2011 , 16:11   Re: rand ()
Reply With Quote #2

random_num ( x, y )
Korxu is offline
dj_freeze
Veteran Member
Join Date: Dec 2009
Location: Looking for you!
Old 11-28-2011 , 16:16   Re: rand ()
Reply With Quote #3

Quote:
Originally Posted by Korxu View Post

Many thanks
__________________
dj_freeze is offline
Send a message via Skype™ to dj_freeze
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-28-2011 , 21:54   Re: rand ()
Reply With Quote #4

Quote:
Originally Posted by dj_freeze View Post
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.
__________________
fysiks is offline
B3N4K
Senior Member
Join Date: Jun 2008
Location: Czech Republic
Old 11-29-2011 , 15:21   Re: rand ()
Reply With Quote #5

And THIS should be in your bookmarks. First place whene you are looking for any function.
B3N4K is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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