rand

functionsince v0.0-927 clojure.core/randEdit
(rand)
(rand n)

Details:

Returns a random floating point number between 0 inclusive and n exclusive.

n defaults to 1.


See Also:


Source docstring:
Returns a random floating point number between 0 (inclusive) and
n (default 1) (exclusive).
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn rand
  ([] (rand 1))
  ([n] (* (Math/random) n)))