Re: SMLIB 0.9.2 BETA (274 Function Stocks) | updated 28.01.2011
PHP Code:
|
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
So I am guessing these new random value functions are more random than stock ones like: GetRandomInt() or GetRandomFloat()
Also the math_clamp does actually redefine the value to min or max if it is out of bounds right? |
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Quote:
I tried psychonic's function first, but that wasn't completely random, so I rewrote it and made some tests to make sure each value has the same chance of being returned. Quote:
smlib 0.9.4 will be released today. |
Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Quote:
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
FaTony, your trolling slowly becomes annoying.
We all know that 100% randomness doesn't exist in the universe (chaos theory). it's as random as it can be now in a sourcemod, and from a relative point of view that's 100%, not gonna debate this further. |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
New smlib update available: smlib 0.9.4 beta
Compatibility breaks: Removed argument of Effect_FadeIn() Changes: Quote:
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Quote:
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
If it is random enough to give equal chance to all values in a few thousand runs that is a lot better than what we had before.
Also he said "random as it can be now" in that it is as random as it can be given the time. In order to achieve true randomness you will need to wait for an infinite duration for the now to apply for infinite randomness. So after infinite time is spent creating an infinity random random generator you can then evaluate if it is truly random. (I will try to be placed in suspended animation prior to death to await your results) On another note I was wondering about effectiveness of the float version when used with decimal percentage values. For example: Math_GetRandomFloat(0.0,1.0)<=0.23 Is this fine, totally wrong or should I be saying 0.00,1.00 or something to improve accuracy? |
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Infinite pseudo randomness =/= true randomness to me.
|
Re: SMLIB 0.9.4 BETA (278 Function Stocks) | updated 31.01.2011
Quote:
I don't know what exactly you mean, it will always have the same effectiveness. |
| All times are GMT -4. The time now is 21:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.