There are a variety of extension methods available for the System.Random class. These are listed below:
.DateTime().DateTime(DateTime from).DateTime(DateTime to).DateTime(DateTime from, DateTime to).TimeSpan(TimeSpan from, TimeSpan to).Enum<T>().Element<T>(IEnumerable<T> items).Elements<T>(IEnumerable<T> items, int count).Elements<T>(IEnumerable<T> items, int min, int max).Chars(int count).Char().Digits(int count).MobileNumber(int count).Digit().Birthday().PostCode().Long(long max).Long(long min, long max).Birthday().City().County().MaleForename().FemaleForename().Forename().Surname().Street().Company().EmailAddress()
For any other object, the following extension methods are available:
.OrNull().OrNull(int probability).OrDefault().OrDefault(int probability)
The Audacia.Random.Data class exposes the collections of strings used for some of the extension methods. These are:
CitiesCountiesMaleNamesFemaleNamesSurnamesStreetsCompanies