Liking cljdoc? Tell your friends :D

rapid-fake.util


bothifyclj

(bothify pattern)

Replace '#' with digits and '?' with uppercase letters.

Replace '#' with digits and '?' with uppercase letters.
sourceraw docstring

letterifyclj

(letterify pattern)

Replace each '?' in pattern with a random uppercase letter.

Replace each '?' in pattern with a random uppercase letter.
sourceraw docstring

luhn-checksumclj

(luhn-checksum digits-str)

Calculate Luhn checksum digit for a string of digits.

Calculate Luhn checksum digit for a string of digits.
sourceraw docstring

numerifyclj

(numerify pattern)

Replace each '#' in pattern with a random digit.

Replace each '#' in pattern with a random digit.
sourceraw docstring

rand-elementclj

(rand-element coll)

Pick a random element from a collection.

Pick a random element from a collection.
sourceraw docstring

rand-elementsclj

(rand-elements coll n)

Pick n random elements from a collection (with replacement).

Pick n random elements from a collection (with replacement).
sourceraw docstring

rand-hexclj

(rand-hex n)

Generate a random hex string of n characters.

Generate a random hex string of n characters.
sourceraw docstring

weighted-randomclj

(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}.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close