Generates a random integral number in the given
[inclusive,inclusive] range.
When the generator tries to shrink, it will shrink towards the
origin of the specified
Range.
For example, the following generator will produce a number between
1970 and
2100, but will shrink towards
2000:
integral (Range.constantFrom 2000 1970 2100) :: Gen Int
Some sample outputs from this generator might look like:
=== Outcome ===
1973
=== Shrinks ===
2000
1987
1980
1976
1974
=== Outcome ===
2061
=== Shrinks ===
2000
2031
2046
2054
2058
2060