Liking cljdoc? Tell your friends :D

nl.surf.demo-data.generators


*resource-class-loader*clj

source

bigdec-cubicclj

(bigdec-cubic lo hi)

Build a generator to pick a long distributed between lo and hi, both inclusive. This generator has cubic biased toward hi.

Build a generator to pick a long distributed between `lo` and `hi`, both
inclusive.  This generator has cubic biased toward `hi`.
sourceraw docstring

booleanclj

(boolean)

Build a generator to pick random boolean values

Build a generator to pick random boolean values
sourceraw docstring

charclj

(char)
(char lo hi)

Build a generator to pick a character uniformly distributed between lo and hi, both inclusive. Without boundaries a printable ASCII character is picked.

Build a generator to pick a character uniformly distributed between `lo` and
`hi`, both inclusive.  Without boundaries a printable ASCII character is
picked.
sourceraw docstring

floatclj

(float)
(float lo hi)

Build a generator to pick a integer uniformly distributed between lo and hi, both inclusive.

Build a generator to pick a integer uniformly distributed between `lo` and
`hi`, both inclusive.
sourceraw docstring

formatcljdeprecated

(format fmt & arg-gens)

Build a generator for strings using a fmt as in clojure.core/format and arg-gens generators as arguments.

Build a generator for strings using a `fmt` as in `clojure.core/format` and
`arg-gens` generators as arguments.
sourceraw docstring

intclj

(int)
(int lo hi)

Build a generator to pick a integer uniformly distributed between lo and hi, both inclusive.

Build a generator to pick a integer uniformly distributed between `lo` and
`hi`, both inclusive.
sourceraw docstring

int-cubicclj

(int-cubic lo hi)

Like bigdec-cubic but returns an int.

Like `bigdec-cubic` but returns an int.
sourceraw docstring

int-logclj

(int-log lo hi)

Build a generator to pick a long distributed between lo and hi, both inclusive. This generator has logarithmic biased toward hi.

Build a generator to pick a long distributed between `lo` and `hi`, both
inclusive.  This generator has logarithmic biased toward `hi`.
sourceraw docstring

lines-resourceclj

(lines-resource n)

Returns a collection by reading named resource n and spliting lines.

Returns a collection by reading named resource `n` and spliting lines.
sourceraw docstring

objectclj

(object m)

Build a generator that returns a map

Build a generator that returns a map
sourceraw docstring

one-ofclj

(one-of coll)

Build a generator to pick one of coll.

Build a generator to pick one of `coll`.
sourceraw docstring

one-of-eachclj

(one-of-each colls)

Build a generator to pick one item from each collection in colls.

Build a generator to pick one item from each collection in `colls`.
sourceraw docstring

resourceclj

(resource n)

Return the full text from the named resource n.

Return the full text from the named resource `n`.
sourceraw docstring

stringclj

(string)

Build a generator to pick random strings of characters.

Build a generator to pick random strings of characters.
sourceraw docstring

textcljdeprecated

(text corpus & {:keys [lines lookback] :or {lines 3 lookback 2}})
source

uuidclj

(uuid)

Build a generator to pick UUIDs.

Build a generator to pick UUIDs.
sourceraw docstring

weightedclj

(weighted m)

Build a generator to pick one of weighted m.

For example: with {"foo" 2, "bar" 1} there's a 2 in 3 chance "foo" will be picked.

Build a generator to pick one of weighted `m`.

For example: with `{"foo" 2, "bar" 1}` there's a 2 in 3 chance `"foo"`
will be picked.
sourceraw docstring

weighted-setclj

(weighted-set m)

Build a generator to pick a set of weighted m.

TODO FIXME

Build a generator to pick a set of weighted `m`.

TODO FIXME
sourceraw docstring

yaml-resourceclj

(yaml-resource n)

Returns YAML data from resource n.

Returns YAML data from resource `n`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close