Quote:
Originally Posted by zeroibis
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
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.
__________________