Quote Originally Posted by lintz
.. but for some reason the loop never runs even if the values = each other.
That would be correct. Right? If you want the the loop to execute at least once you use do..while:
PHP Code:
do {
 
    
$Number2 =  intval(rand(100999));

    
$Number1 $Number2;

} while (
$Number1 != $Number2);