print "Guess the Code:"; $st=time(); $ip=<>; chop($ip); while($seed != $ip) { $seed=substr(rand(1)*10,0,1); $seed++; $ip=<>; }