Raised This Month: $12 Target: $400
 3% 

View Poll Results: Which one?
20% - random_num(1, 5) 5 100.00%
16% - random_num(0, 5) 0 0%
Voters: 5. You may not vote on this poll

1:5


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kww
Senior Member
Join Date: Feb 2021
Location: Russia
Old 04-26-2022 , 03:53   1:5
Reply With Quote #1

What should I execute to get 1:5 chance?
Quote:
E.g. I have 2 animations; one of them played in 1:5 chance. Does that mean common animation plays 5 times and the rare one plays 1 time (random_num(0, 5))
Or the common one plays 4 times and rare - 1?? (random_num(1, 5))
__________________
Now working on: Side Weapons (Very lazy, tbh)
Avatar source: https://bit.ly/3BAk19g
Discord: kww#9951

Last edited by kww; 04-26-2022 at 03:57.
kww is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-26-2022 , 13:52   Re: 1:5
Reply With Quote #2

__________________

Last edited by OciXCrom; 04-26-2022 at 13:53.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-26-2022 , 22:25   Re: 1:5
Reply With Quote #3

random(1,5) //returns 1 to 5
or
random(5) //returns 0 to 4
__________________
Bugsy is offline
Reply


Thread Tools
Display Modes

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 04:34.


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