Namespace: Hedgehog
Assembly: Hedgehog.dll
Function or value | Description |
|
|
|
|
|
|
|
Generates an array using a 'Range' to determine the length.
|
Generates an ASCII character: '\000'..'\127'
|
|
|
|
|
|
|
|
|
|
|
Randomly selects one of the gens in the list. The input list must be non-empty.
|
|
Randomly selects from one of the gens in either the non-recursive or the recursive list. When a selection is made from the recursive list, the size is halved. When the size gets to one or less, selections are no longer made from the recursive list. The first argument (i.e. the non-recursive input list) must be non-empty.
|
|
|
|
|
|
Generates a random DateTime using the specified range. For example: let range = Range.constantFrom (DateTime (2000, 1, 1)) DateTime.MinValue DateTime.MaxValue Gen.dateTime range |
Full Usage:
dateTimeOffset range
Parameters:
Range<DateTimeOffset>
Returns: Gen<DateTimeOffset>
|
Generates a random DateTimeOffset using the specified range.
|
|
Generates a random decimal floating-point number.
|
|
|
|
|
|
Generates a random 64-bit floating point number.
|
|
Generates a value that satisfies a predicate.
|
|
Uses a weighted distribution to randomly select one of the gens in the list. This generator shrinks towards the first generator in the list. The input list must be non-empty.
|
|
Run a generator. The size passed to the generator is always 30; if you want another size then you should explicitly use 'resize'.
|
|
Generates a random signed 16-bit integer.
|
|
Generates a random signed 32-bit integer.
|
|
Generates a random signed 64-bit integer.
|
|
Generates a random number in the given inclusive range.
|
Randomly selects one of the values in the list. The input list must be non-empty.
|
|
Generates a Latin-1 character: '\000'..'\255'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Prevent a 'Gen' from shrinking.
|
|
|
Generates a 'None' part of the time.
|
|
|
|
|
Overrides the size parameter. Returns a generator which uses the given size instead of the runtime-size parameter.
|
|
|
|
|
|
Generates a random signed byte.
|
Adjust the size parameter, by transforming it with the given function.
|
|
|
Generates a sequence using a 'Range' to determine the length.
|
|
Apply an additional shrinker to all generated trees.
|
|
Apply an additional shrinker to all generated trees.
|
|
Generates a random 32-bit floating point number.
|
Used to construct generators that depend on the size parameter.
|
|
Runs an option generator until it produces a 'Some'.
|
|
|
Generates a random string using 'Range' to determine the length and the specified character generator.
|
|
|
|
Tries to generate a value that satisfies a predicate.
|
|
|
|
|
|
|
|
|
|
|
|
Generates a random unsigned 16-bit integer.
|
|
Generates a random unsigned 32-bit integer.
|
|
Generates a random unsigned 64-bit integer.
|
Generates a Unicode character, excluding noncharacters ('\65534', '\65535') and invalid standalone surrogates ('\000'..'\65535' excluding '\55296'..'\57343').
|
|
|
Generates a Unicode character, including invalid standalone surrogates: '\000'..'\65535'
|
|
|
|
|
|
|
|