Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (39 sloc) 705 Bytes
<html>
<body>
<pre>
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
include './RandDotOrg.class.php';
$tr = new RandDotOrg;
?>
RandDotOrg::VER
Returns:
<?php
print_r(RandDotOrg::VER);
?>
get_integers($num=3, $min=0, $max=10, $base=10);
Returns:
<?php
$ar = $tr->get_integers(3, 0, 10, 10);
print_r($ar);
?>
get_sequence($min=1, $max=10);
Returns:
<?php
$ar = $tr->get_sequence(1, 10);
print_r($ar);
?>
get_strings($num=3, $len=6, $digits=TRUE, $upperalpha=TRUE, $loweralpha=TRUE, $unique=TRUE);
Returns:
<?php
$ar = $tr->get_strings(3, 6, TRUE, TRUE, TRUE, TRUE);
print_r($ar);
?>
quota($ip=NULL);
Returns:
<?php
$ar = $tr->quota($ip=NULL);
print_r($ar);
?>
</pre>