<PackageReference Include="NUnit" Version="4.5.1" />

NUnit.Framework.Internal.Randomizer

public class Randomizer : Random
Randomizer returns a set of random values in a repeatable way, to allow re-running of tests if necessary. It extends the .NET Random class, providing random values for a much wider range of types. The class is used internally by the framework to generate test case data and is also exposed for use by users through the TestContext.Random property.
namespace NUnit.Framework.Internal { public class Randomizer : Random { public const string DefaultStringChars = "abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNOPQRSTUVWXYZ0123456789_"; public static int InitialSeed { get; set; } public static Randomizer GetRandomizer(MemberInfo member); public static Randomizer GetRandomizer(ParameterInfo parameter); public static Randomizer CreateRandomizer(); public Randomizer(); public Randomizer(int seed); public uint NextUInt(); public uint NextUInt(uint max); public uint NextUInt(uint min, uint max); public short NextShort(); public short NextShort(short max); public short NextShort(short min, short max); public ushort NextUShort(); public ushort NextUShort(ushort max); public ushort NextUShort(ushort min, ushort max); public long NextLong(); public long NextLong(long max); public long NextLong(long min, long max); public ulong NextULong(); public ulong NextULong(ulong max); public ulong NextULong(ulong min, ulong max); public byte NextByte(); public byte NextByte(byte max); public byte NextByte(byte min, byte max); public sbyte NextSByte(); public sbyte NextSByte(sbyte max); public sbyte NextSByte(sbyte min, sbyte max); public bool NextBool(); public bool NextBool(double probability); public double NextDouble(double max); public double NextDouble(double min, double max); public float NextFloat(); public float NextFloat(float max); public float NextFloat(float min, float max); public object NextEnum(Type type); public T NextEnum<[Nullable(2)] T>(); public string GetString(int outputLength, string allowedChars); public string GetString(int outputLength); public string GetString(); public decimal NextDecimal(); public decimal NextDecimal(decimal max); public decimal NextDecimal(decimal min, decimal max); public Guid NextGuid(); } }