<PackageReference Include="NUnit" Version="2.6.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.
public static int RandomSeed { get; }

Get a random seed for use in creating a randomizer.

public Randomizer()

Construct a randomizer using a random seed

public Randomizer(int seed)

Construct a randomizer using a specified seed

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 int[] GetInts(int min, int max, int count)

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