random_num .. not that random
Okay I pick up few rows from a text file and have to select 1 in random, I used
PHP Code:
|
Re: random_num .. not that random
Quote:
Quote:
Quote:
random() and random_num() is the most random you can get with AMX Mod X. Other computer-based random functions won't be much, if any, better than these. If you want truly random, start flipping coins (but you don't want random because you stated that in your post). In conclusion, if you want help, you will need to describe better your situation and what you really want (not what you think you need to get what you want; aka "The XY Problem"). EDIT: This might be helpful: [HOW TO] Retrieve random values from an array without retreiving the same twice |
Re: random_num .. not that random
I figured it out, the problem was actialy the timing. All the servers are launched using a bash script at the same time, after adding a delay in the loop it fixed itself. No need to modify the plugin *whew*
I think it couldn't be described better, the way that every 'randomizing' function works is by using some hardware timing and when I launch them all 5 at the same time it stucks like that. |
| All times are GMT -4. The time now is 15:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.