AutoFixture/AutoFixture — pull request #7 by moodmosaic (2012-09-29 07:40:24+00:00)
Title: Support for truly constrained non-deterministic numbers

This Pull Request adds a new ISpecimenBuilder called `RandomNumericSequenceGenerator`. By appling a customization to a Fixture instance with the above builder all numbers will be randomly created between [1, 255]. No duplicates are returned so when/if run out of numbers the next numbers will be randomly created between [256, 32767] and so on.

The creation of random numbers can be further constrained by injecting a specific sequence of two or more limits in the constructor of the `RandomNumericSequenceGenerator` type.

Negative numbers are also supported, so for example it is possible to write: `new RandomNumericSequenceGenerator(-100, 100)` or `new RandomNumericSequenceGenerator(-100, -200)`, etc.

There is also a customization which once applied will customize a Fixture instance with the `RandomNumericSequenceGenerator` class. It uses the default limits. Alternatively, we can manually constrain the base of all random numbers by doing:
`fixture.Customizations.Add(new RandomNumericSequenceGenerator(-50, 255));`