Do you have an arrangement in your family where everyone picks the name out of a hat and the name you pick is the person you'll buy a Christmas gift for? My family does this, but it's always been a bit of a pain because not everyone involved can be at the same place at the same time in order to pull names out of a hat. Inevitably someone has a name pulled for them, which puts a damper on the whole surprise and suspense part of the fun.
To make things easier, I wrote a program that pulls a random name out of a hat for everyone and then provides a mechanism for each person to enter their password (provided to them by you, the administrator) to see who the program has chosen for them. It's smart enough not to pick a person twice. It's also smart enough to make sure that a person doesn't have someone in the same family picked for them*, which is even better than pulling names from a real hat, since when there are only two names left in the hat they could be members of the same family.
If you would like to give this script a try, you can download it from here**: http://www.opbarnes.com/downloads/xmashat.php.txt
You can also play around with a demo of the script here.
* The script will attempt to make sure it has been chosen someone from another family for each person by attempting the entire hat picking sequence up to 1000 times (the script default) before giving up and going with the best case (the "best" case is the one that had the fewest number of people whose pick was someone in the same family).
** I whipped this thing together pretty quick -- so beware!
UPDATE: This software can be used for your own secret Santa party, secret gift exchange, white elephant, etc.
Terry (email address hidden) wrote @ 25:38:28, Wed Dec 17, 2008
Hi, I saw the Christmas hat s/w, very neat!! and would like to try it with my family. Is it accessible to use? clicking on the url just gets me the program code. is there a user input available? thanks .....Terry
web development (link) wrote @ 6:40:53, Wed Dec 30, 2009
Hi dear, how are you? i hope you will be fine and in the best of your health. Dear, i just comment you to say that you have done what a great job here in this unique blog. your blog is very much stunning and also according to the desire of the readers. I really appreciate your efforts. Thanks a lot for providing us such a great information.
Damo wrote @ 9:47:42, Mon Jan 4, 2010
Thanks for Xmas Hat. We do a secret santa every year.
nomzz (email address hidden) wrote @ 23:51:42, Fri Mar 5, 2010
While surfing net to get data related to projects of 642-062 i came here and find this web different one...i found useful information at here...There are certainly many different posts at here...And this one also seems to me different one!
Copyright ©2004-2009 O. Patrick Barnes. All rights reserved.