<PackageReference Include="NUnit" Version="3.0.0-alpha-3" />

Randomizer

public class Randomizer : Random
Randomizer returns a set of random _values in a repeatable way, to allow re-running of tests if necessary. This class is an internal framework class used for setting up tests. It is used to generate random test parameters, at the time of loading the tests. It also generates seeds for use at execution time, when creating a RandomGenerator for use by the test.
public static int InitialSeed { get; set; }

Initial seed used to create randomizers for this run

public Randomizer()

Construct a randomizer using a random seed

public Randomizer(int seed)

Construct a randomizer using a specified seed

public static Randomizer CreateRandomizer()

Create a new Randomizer using the next seed available to ensure that each randomizer gives a unique sequence of _values.

public static Randomizer GetRandomizer(MemberInfo member)

Get a randomizer for a particular member, returning one that has already been created if it exists. This ensures that the same _values are generated each time the tests are reloaded.

public static Randomizer GetRandomizer(ParameterInfo parameter)

Get a randomizer for a particular parameter, returning one that has already been created if it exists. This ensures that the same _values are generated each time the tests are reloaded.

public double[] GetDoubles(int count)

Return an array of random doubles between 0.0 and 1.0.

public double[] GetDoubles(double min, double max, int count)

Return an array of random doubles with _values in a specified range.

public object[] GetEnums(int count, Type enumType)

Return an array of random Enums

public int[] GetInts(int min, int max, int count)

Return an array of random ints with _values in a specified range.