Re: [nyphp-talk] Question about random selection

2007-12-10 Thread Rolan Yang
Anthony Papillion wrote: Hi Rolan, Thanks for the input. Works like a charm. I was approaching the problem from the wrong angle. Thanks again. you should probably randomize the entire list and do an A->B,B->C,C->D,D->E, etc.. instead of pairing up because by the 4th or 5'th gift, people

Re: [nyphp-talk] Question about random selection

2007-12-10 Thread Anthony Papillion
Do they have to be matched as pairs? If so, then it's simply not possible. If they only need to be matched to another person, then pick any pair off the list (Santa A & B) and the left out Santa (C) and match A->B, B->C, C->A ~Rolan Hi Rolan, Thanks for the input. Works like a charm. I

Re: [nyphp-talk] Question about random selection

2007-12-10 Thread Rolan Yang
Anthony Papillion wrote: Hello Everyone, I have a 'secret santa' type application that I designed for a Yahoo Group my wife owns. The way it works is that people go to the site, enter their email address and are randomly matched with some other person. The two filtering criteria for the mat

[nyphp-talk] Question about random selection

2007-12-10 Thread Anthony Papillion
Hello Everyone, I have a problem that I'm hoping someone here can help me solve. It's plagued me for a while now and, to be honest, I'm not terribly sure there actually is a workable solution. Here's the deal. I have a 'secret santa' type application that I designed for a Yahoo Group my wife