NYCPHP Meetup

NYPHP.org

[nycphp-talk] Question about random selection

Anthony Papillion anthony at adcl.biz
Mon Dec 10 04:18:12 EST 2007


>
> 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 was approaching the problem 
from the wrong angle.  Thanks again.

Anthony Papillion



More information about the talk mailing list