for ($x = 0; $x <= 10; $x++) { $number = mt_rand(1,500); echo $number; } [/php]