Primitive Type


Primitive Type Interface

Describes Primitive Type interface.

boolean

Retrieve random boolean.

$boolean = $random->boolean();

integer

Retrieve random integer.

$integer = $random->integer($min = PHP_INT_MIN, $max = PHP_INT_MAX);

float

Retrieve random float.

$float = $random->float($min = PHP_FLOAT_MIN, $max = PHP_FLOAT_MAX, $precision = 2);

string

Retrieve random string.

$string = $random->string($length = 8, $characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~+/");

mixed

Retrieve random mixed.

$mixed = $random->mixed();