(bothify pattern)Replace '#' with digits and '?' with uppercase letters.
Replace '#' with digits and '?' with uppercase letters.
(letterify pattern)Replace each '?' in pattern with a random uppercase letter.
Replace each '?' in pattern with a random uppercase letter.
(luhn-checksum digits-str)Calculate Luhn checksum digit for a string of digits.
Calculate Luhn checksum digit for a string of digits.
(numerify pattern)Replace each '#' in pattern with a random digit.
Replace each '#' in pattern with a random digit.
(rand-element coll)Pick a random element from a collection.
Pick a random element from a collection.
(rand-elements coll n)Pick n random elements from a collection (with replacement).
Pick n random elements from a collection (with replacement).
(rand-hex n)Generate a random hex string of n characters.
Generate a random hex string of n characters.
(weighted-random weights)Pick from weighted options. weights is a map of {value weight}.
Pick from weighted options. weights is a map of {value weight}.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |