Guess my number

I am thinking of a number between 1 and 100, guess what it is:"; $noThought = rand(1,100); $noTurns = 1; } else { print "

Your guess was $noGuessed.

"; checkNo(); $noTurns++; } print <<
HERE; function checkNo(){ global $noThought, $noGuessed, $noTurns; if ($noGuessed == $noThought){ print "

That is correct!! Well Done.

"; if ($noTurns == 1) { print "

Amazing! You got it first time!!

"; } else { print "

Well done. You took $noTurns turns.

"; } //end if $noTurns = ""; print "

Click here to play again

"; exit(); } else { if ($noGuessed < $noThought){ $noStatus = "low"; } else { $noStatus = "high"; } print "

That's not the number I though of. You are too $noStatus

"; print "

Please try again:

"; } // end if } //end function ?>