- fmod: documentation ( source)
- rand: documentation ( source)
- getrandmax: documentation ( source)
<?php
while (true) {
$rand1 = (float)rand()/(float)getrandmax();
$rand2 = (float)rand()/(float)getrandmax();
if (bcmod($rand1, $rand2) != fmod($rand1, $rand2)) {
echo $rand1." ".$rand2;
break;
}
}