<PackageReference Include="Relativity.Server.Testing.Framework.SDK" Version="10.3.0" />

Randomizer

public static class Randomizer
Provides a set of methods for data randomization.
public const int DefaultEmailAddressLength = 35

The default random email address length.

public const int DefaultStringLength = 24

The default random string length.

public static string GetEmailAddress(int length = 35)

Gets the random email address.

public static int GetInt(int max)

Returns a non-negative random integer that is less than the specified maximum.

public static int GetInt(int min, int max)

Returns a random integer that is within a specified range.

public static string GetPassword()

Gets a randomly generated password according to secure requirements.

public static string GetString(string format = "{0}", int length = 24)

Gets the random string.