JasonBock / SpackleNet

Spackle is a project that contains a number of helper methods I've used to supplement the core classes in .NET.
MIT License
14 stars 1 forks source link

Add an Overload to Generate() That Takes a Range<T> #5

Closed JasonBock closed 8 years ago

JasonBock commented 10 years ago

This would allow users to specify creating an integer between 20 and 50, for example.

JasonBock commented 8 years ago

This really wouldn't make sense for a lot of types. At the very least it could be confusing. A range with a number would make sense, but any arbitrary type? e.g. a string, would we keep generating a string until it was within a range?