Returns a random floating point number between 0 (inclusive) and
n (default 1) (exclusive).
(defn rand
"Returns a random floating point number between 0 (inclusive) and
n (default 1) (exclusive)."
{:added "1.0"}
([] (. Math (random)))
([n] (* n (rand))))
Comments top
No comments for rand. Log in to add a comment.