- substr: documentation ( source)
- var_dump: documentation ( source)
- number_format: documentation ( source)
<?php
function shitrand()
{
static $i=32;
return substr(number_format('1E'.($i++), 0), -1);
}
for($i=0; $i<20; $i++)
{
var_dump(shitrand());
}