Thanks very much.The solution works except that it actually yields x random numbers from within three rand(); sessions.Like so:
$max = 3;
for ($i=0;$i<$max;$i++){
$r[]=rand(1,20);
}
$q=implode(" ", $r);
echo $q;
echo "<br>";
echo $r["0"];
echo "<br>";
echo "<br>";
echo $r["1"];
echo "<br>";
echo "<br>";
echo $r["2"];
echo "<br>";
if you keep refreshing the page the same number comes up twice or even more in each fresh page.
what I would appreciate is a way to make x random numbers from the same rand(); session so that at every time the x random numbers are always different.x