I've been tearing my hair out over this one, I am missing a fundimental thing.
I am trying to generate 3 random numbers from an arbritrary pool, say from 1 to 3, so I should get 1, 3, 2 or a permientation of that. But I simply can't get my head around how to stop it generating the same number, this is what I have:
for($thumbs=1; $thumbs<=3; $thumbs++)
{
$randphotos[$thumbs] = rand(1,$nophotos);
echo "$randphotos[$thumbs]<BR>";
}
Those are the building blocks, but beyond that I get lost immediately!