ClojureDocs

Nav

Namespaces

rand-nth

clojure.core

Available since 1.2 (source)
  • (rand-nth coll)
Return a random element of the (sequential) collection. Will have
the same performance characteristics as nth for the given
collection.