class Random

Methods

static string
generateHexHash()

No description

static string
generateString(string $format)

No description

static string
generateCharacter(string $format)

No description

static string
generateIdentifier(int $bytes_count)

No description

static string
normalizeFormat(string $format)

No description

static string
pickLetter()

No description

static int
pickDigit(int $base = 10)

No description

static array
generateIntegerMonotonicSeries(int $min, int $max, int $count)

No description

Details

at line 17
static string generateHexHash()

No description

Return Value

string

32 random hexadecimal characters

at line 26
static string generateString(string $format)

No description

Parameters

string $format

A for letters, 1 for digits, e.g. AAA111

Return Value

string

a random string based on the format e.g. ZCK530

at line 42
static string generateCharacter(string $format)

No description

Parameters

string $format

A for letters, 1 for digits, e.g. A

Return Value

string

a random string based on the format e.g. Z

at line 50
static string generateIdentifier(int $bytes_count)

No description

Parameters

int $bytes_count

Return Value

string

Exceptions

Exception

at line 60
static string normalizeFormat(string $format)

No description

Parameters

string $format

Return Value

string

at line 115
static string pickLetter()

No description

Return Value

string

Exceptions

Exception

at line 124
static int pickDigit(int $base = 10)

No description

Parameters

int $base

Return Value

int

Exceptions

Exception

at line 142
static array generateIntegerMonotonicSeries(int $min, int $max, int $count)

No description

Parameters

int $min
int $max
int $count

Return Value

array

Exceptions

InvalidArgumentException
Exception