GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing clojure.github.io — clojure.data.generators - data.generators 1.1.0-SNAPSHOT API documentation Table of ContentsAPI for clojure.data.generators - data.generators 1.1.0-SNAPSHOT (in development)by Stuart HallowayFull namespace name: clojure.data.generators OverviewProject home page is https://github.com/clojure/data.generators/
Data generators for Clojure. Public Variables and Functions*rnd*dynamic varRandom instance for use in generators. By consistently using this instance you can get a repeatable basis for tests.Source boolean-arrayfunctionUsage: (boolean-array f)
(boolean-array f sizer)
Create an array with elements from f and sized from sizer.Source byte-arrayfunctionUsage: (byte-array f)
(byte-array f sizer)
Create an array with elements from f and sized from sizer.Source char-arrayfunctionUsage: (char-array f)
(char-array f sizer)
Create an array with elements from f and sized from sizer.Source collectionfunctionUsage: (collection) Returns a collection of scalar elements based on *rnd*.Source datefunctionUsage: (date)
(date base)
Create a date with geometric mean around base which defaults to #inst "2007-10-16T00:00:00.000-00:00"Source default-sizerfunctionUsage: (default-sizer) Default sizer used to run tests. If you want a specific distribution, create your own and pass it to a fn that wants a sizer.Source double-arrayfunctionUsage: (double-array f)
(double-array f sizer)
Create an array with elements from f and sized from sizer.Source float-arrayfunctionUsage: (float-array f)
(float-array f sizer)
Create an array with elements from f and sized from sizer.Source hash-mapfunctionUsage: (hash-map fk fv)
(hash-map fk fv sizer)
Create a hash-map with keys from fk, vals from fv, and sized from sizer.Source int-arrayfunctionUsage: (int-array f)
(int-array f sizer)
Create an array with elements from f and sized from sizer.Source keywordfunctionUsage: (keyword)
(keyword sizer)
Create a non-namespaced keyword sized from sizer.Source listfunctionUsage: (list f)
(list f sizer)
Create a list with elements from f and sized from sizer.Source long-arrayfunctionUsage: (long-array f)
(long-array f sizer)
Create an array with elements from f and sized from sizer.Source one-offunctionUsage: (one-of & specs) Generates one of the specs passed in, with equal probability.Source printable-ascii-charfunctionUsage: (printable-ascii-char) Returns a char based on *rnd* in the printable ascii range.Source rand-nthfunctionUsage: (rand-nth coll) Replacement of core/rand-nth that allows control of the randomization basis (through binding *rnd*).Source ratiofunctionUsage: (ratio)
(ratio num-gen denom-gen)
Generate a ratio, with numerator and denominator uniform longs or as specifiedSource reservoir-samplefunctionUsage: (reservoir-sample ct coll) Reservoir sample ct items from coll, using *rnd*.Source setfunctionUsage: (set f)
(set f sizer)
Create a set with elements from f and sized from sizer.Source short-arrayfunctionUsage: (short-array f)
(short-array f sizer)
Create an array with elements from f and sized from sizer.Source stringfunctionUsage: (string)
(string f)
(string f sizer)
Create a string with chars from f and sized from sizer.Source symbolfunctionUsage: (symbol)
(symbol sizer)
Create a non-namespaced symbol sized from sizer.Source tuplefunctionUsage: (tuple & generators) Generate a tuple with one element from each generator.Source uniformfunctionUsage: (uniform)
(uniform lo hi)
Uniform distribution from lo (inclusive) to hi (exclusive). Defaults to range of Java long.Source uuidfunctionUsage: (uuid) Create a UUID based on uniform distribution of low and high parts.Source vecfunctionUsage: (vec f)
(vec f sizer)
Create a vec with elements from f and sized from sizer.Source weightedfunctionUsage: (weighted m) Given a map of generators and weights, return a value from one of the generators, selecting generator based on weights.Source Copyright 2007-2023 by Rich Hickey and the various contributors
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |