You've hit the problem right on the head, kensuke. I believe he wants to give each viewer not just a random display from the database, but a display that won't be repeated, as well.
Checking the random numbers off against a boolean array, would give him what he wants, (together with your suggestion, I believe. So if he's already shown the pic associated with #2 in the database, that pic will never be shown in the future "random" pics, to that viewer, on that visit to the website. Somewhat of a guess, given the scant info, but I believe that's what he wants. Adak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/algogeeks -~----------~----~----~----~------~----~------~--~---