for($i = 1; $i <= 9999999; $i++){
  $bilet = rand(0000001, 9999999);
   if($bilet === 4965412){
       echo "rich man :P"; 
   }
}