phpRandDotOrg 1.0.2

Random.org Number Client by Jonathon Reinhart


Usage / Examples

get_integers($num=1, $min=0, $max=10, $base=10)
Ex: $rand_org->get_integers(3, 5, 10);
Array
(
    [0] => 7
    [1] => 6
    [2] => 6
)


get_sequence($min=1, $max=10)
Ex: $rand_org->get_sequence(1, 7);
Array
(
    [0] => 6
    [1] => 5
    [2] => 7
    [3] => 2
    [4] => 4
    [5] => 1
    [6] => 3
)


get_strings($num=1, $len=10, $digits=TRUE, $upperalpha=TRUE, $loweralpha=TRUE, $unique=TRUE)
Ex: $rand_org->get_strings(3, 20, FALSE, TRUE, TRUE, FALSE);
Array
(
    [0] => qiCTkYjrGxxijqEQkKYg
    [1] => YgqSCwSskidVcHOHDOtW
    [2] => CsjghNfPOoTLXGbbmOhc
)


quota($ip=NULL)
Ex: $rand_org->quota();
Array
(
    [0] => 999199
)
Also note, it is best to provide your email address / URL in the paramter when initializing this object:
	include 'RandDotOrg.class.php';
	$rand_org = new RandDotOrg('MyApp - exmaple.com');

Download:


Changelog:


To Do:


Author:

Jonathon Reinhart