<?php
 $var1 = 10;
 $var2 = 20;
 $var3 = 30;

 for ($i=0; $i<10; $i++)
 {
  $random = "var".rand(1, 3);
  echo $random." = ".$$random."\n";
 }  
?>