store/[org.clojure/clojure "1.8.0"] clj::clojure.core/rand-int

Official Documentation

Add notes
Arities
==================================================
   [n]

Docstring
==================================================
  Returns a random integer between 0 (inclusive) and n (exclusive).

Source

(defn rand-int
  "Returns a random integer between 0 (inclusive) and n (exclusive)."
  {:added "1.0"
   :static true}
  [n] (int (rand n)))

Example 1

Edit
(rand-int 30)
;; => 10

(rand-int 30)
;; => 7

;; compare with 
(int (rand 30))
;; => 17

Uses on crossclj