rand-nth

functionsince v0.0-927 clojure.core/rand-nthEdit
(rand-nth coll)

Details:

Returns a random element from a sequential collection coll.

Has the same performance characteristics as nth.


See Also:


Source docstring:
Return a random element of the (sequential) collection. Will have
the same performance characteristics as nth for the given
collection.
Source code @ clojurescript:src/main/cljs/cljs/core.cljs
(defn rand-nth
  [coll]
  (nth coll (rand-int (count coll))))