public static ushort UnsignedWithinInclusiveRange(ushort min, ushort max) { return((ushort)IntegerGenerator.WithinInclusiveRange(min, max)); }
public static T AnyExcept <T>(params T[] except) where T : struct, Enum { return(EnumFrom <T>(IntegerGenerator.AnyExcept(ValuesAsIntegers(except).ToArray()))); }
public static T Any <T>() where T : struct, Enum { return(EnumFrom <T>(IntegerGenerator.Any())); }
private static char Any() { return((char)IntegerGenerator.WithinInclusiveRange(char.MinValue, char.MaxValue)); }
private static int AnyReasonableLength() { return(IntegerGenerator.WithinInclusiveRange(1, 10)); }
public static IEnumerable <T> AnyNumberOf <T>(Func <T> createItem) { var numberOfItems = IntegerGenerator.WithinInclusiveRange(0, 10); return(numberOfItems.Select(createItem)); }