Hi guys,

Can anyone figure out why the code always causes the number 1 to be generated?

<html>
<head></head>
<body>
<?php
$number = rand(1,100);
if($guess>$number) {
echo "Your guess is too high";
echo "<br>I was thinking of $number, you wasn't ";
}
if($guess<$number){
echo "Your guess is too low";
echo "<br>I was thinking of $number, you wasn't ";
}
?>
You win
</body>
</html>