(random)
(random a)
(random a b)
Wraps Math/random with arguments.
Wraps Math/random with arguments.
(random-bool)
(random-bool threshold)
Returns true if random is greater than threshold. If no argument is given, threshold is 0.5 by default.
Returns true if random is greater than threshold. If no argument is given, threshold is 0.5 by default.
(random-nth-custom coll fn)
returns random element from collection with custom random
returns random element from collection with custom random
(range-from-center center size)
Returns two numbers defining a range given a center and a range size
Returns two numbers defining a range given a center and a range size
(scale n start1 stop1 start2 stop2)
scales a number to a new range
scales a number to a new range
(threshold-bool n threshold)
returns true if number is greater than threshold
returns true if number is greater than threshold
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close