Ok let's say that I have 10 records total.
so I do: rand(1,10);
Actual records: 1, 3, 5, 9, 10;
If rand picks the number 4 then it will not return a valid record. Get my drift? Now I could check to make sure the record is valid by doing a mysql_num_rows() on it to make sure it's a valid return but imagine picking ten numbers and making sure that they don't repeat. Think of how many checks that would be such as keeping track of all the numbers already used in the rand function, and then check each one to make sure the number isn't invalid.
Any other ideas? I am stumpted which is a bit odd.
Thanks,
Chad