- rand: documentation ( source)
- printf: documentation ( source)
<?php
$min = 17;
$max = $min + 48; // 48 is to fit the results in my console
for ($testseed=$min; $testseed<$max; $testseed++)
{
rand( $testseed );
$r = rand();
printf( "rand() == 0x%08x == %d\n", $testseed, $r );
} ?>