View Single Post
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 01-30-2011 , 19:09   Re: SMLIB 0.9.2 BETA (269 Function Stocks) | updated 28.01.2011
Reply With Quote #33

Quote:
Originally Posted by zeroibis View Post
So I am guessing these new random value functions are more random than stock ones like: GetRandomInt() or GetRandomFloat()
That's right, it's 100% random and uniform.
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:
Originally Posted by zeroibis View Post
Also the math_clamp does actually redefine the value to min or max if it is out of bounds right?
yes, it makes sure the value doesn't go below min or higher than max and corrects it if neccessary.

smlib 0.9.4 will be released today.
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0

Last edited by berni; 01-30-2011 at 19:12.
berni is offline