11.06.2012, 04:36
I need to get a random float value - can someone help please?
For example I want to be able to do
frandom(2.0)
and get a float between 0 and 2.0, and I don't just mean 0.0 1.0 and 2.0, I mean ANY float, so like 2.4 and 0.4.
If possible I'd also like frandomex(Float:min, Float:max);
Thanks.
For example I want to be able to do
frandom(2.0)
and get a float between 0 and 2.0, and I don't just mean 0.0 1.0 and 2.0, I mean ANY float, so like 2.4 and 0.4.
If possible I'd also like frandomex(Float:min, Float:max);
Thanks.