function make_seed() {
list($usec, $sec) = explode(' ', microtime());
return (float) $sec + ((float) $usec * 100000);
}
srand(make_seed());
$randval = rand();
function oneinahundred(){
if (rand(0,99)<1) return TRUE;
else return FALSE;
}
for ($i=0;$i<1000;$i++){
if (oneinahundred()) print "1";
else print "0";
}