rand-int

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

Details:

Returns a random integer between 0 inclusive and n exclusive.


See Also:


Source docstring:
Returns a random integer between 0 (inclusive) and n (exclusive).
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn rand-int
  [n] (Math/floor (* (Math/random) n)))