Quote:
Originally Posted by markheath
A small documentation issue I noticed:
rand() actually seems to return a floating point number.
|
Right. But is it exclusive? Does it ever return exactly 1.0?
Also the (optional) input param <x> is treated as an integer (fractions are discarded) and clamped to 1, ie.:
Code:
function rand(x) (
x = max((int)x, 1);
...
);