(random-nth seed coll)
Returns a random element of the collection. Returns the tuple [state result].
Returns a random element of the collection. Returns the tuple [state result].
(take-n-random seed n coll)
Takes (at most) n different random elements from the collection. Returns the tuple [state result]. If the collection contains less elements than n, all elements will be returned in a random order.
Takes (at most) n different random elements from the collection. Returns the tuple [state result]. If the collection contains less elements than n, all elements will be returned in a random order.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close