(random-choice coll)
Selects a random element from a given collection.
Selects a random element from a given collection.
(random-in-range lower upper)
Generates a random integer between lower and upper bounds (inclusive).
Generates a random integer between lower and upper bounds (inclusive).
(random-int)
Generates a random integer between -128 and 127 (inclusive).
Generates a random integer between -128 and 127 (inclusive).
(random-long-in-range lower upper)
Generates a random integer between lower and upper bounds (inclusive).
Generates a random integer between lower and upper bounds (inclusive).
(random-string length charset)
Generates a random string of the specified length from a given character set.
Generates a random string of the specified length from a given character set.
(random-with bound)
Generates a random integer with the given bound. Throws an exception if the bound is non-positive.
Generates a random integer with the given bound. Throws an exception if the bound is non-positive.
(random-with-max max)
Generates a random integer between 0 (inclusive) and max (exclusive).
Generates a random integer between 0 (inclusive) and max (exclusive).
(shuffle-coll coll)
Randomly shuffles the elements of a collection.
Randomly shuffles the elements of a collection.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close