Miscalaneous Generators
A bag of other goodies
qc.date
Generates a random date.
qc.color
Generates a random CSS color string.
qc.location
Generates a random [lat, long]
pair that is a valid location on the surface of the earth.
qc.any
Generates a value of any type. Currently this will be what qc.bool, qc.int, qc.real, qc.string, qc.array and qc.object can produce plus a function and the value undefined
. However do not rely on this fact, as more will can be added to this generator without further notice. This generator is meant for situations where your code doesn't really care about a value.
qc.any.simple
Generates a value of a 'simple' type: that is a type that doesn't contain other values (i.e. booleans, numbers, strings, undefined
, null
). Useful for things like generating a base case for a recursive function.
Updated less than a minute ago