ClojureDocs

导航

命名空间

rand-nth

clojure.core

1.2 版本及更新版本可用 (源代码)
  • (rand-nth coll)
Return a random element of the (sequential) collection. Will have
the same performance characteristics as nth for the given
collection.