

See? They come out the same. Here is the script as it stands:
/**
* @author Steven West @ Ewolf UK.com
* @contact info[at]ewolfuk[dot]com
* @copyright 2007
* @created 28:11:2007 15:47
*/
header("Content-type: image/png")
header('Cache-Control: no-cache, must-revalidate')
header('Pragma: no-cache')
$im = imagecreate(20,94)
imagecolorallocate($im,0x00,0x00,0x00)
$textcolor = imagecolorallocate($im,0x00,0xFF,0x00)
$count=0;
$y = 1;
while ( $count <= 5 )
{
$first = rand(0,10000000)
$txt = ($first == 10000000)?'2':rand(0,1)
imagestring($im,4,6,$y,$txt,$textcolor)
$count++;
$y = $count * 15;
}
$y=null;
imagepng($im)
imagedestroy($im)
?>
the random one-in-ten million:
$first = rand(0,10000000)
$txt = ($first == 10000000)?'2':rand(0,1)
Randomly enters a 2 into the binary, with a chance of 1/10,000,000 as a joke.
As you can see the problem is that all the images are the same for the page >_< How can this be fixed?