x404.co.uk
http://www.x404.co.uk/forum/

Geek Secret Santa
http://www.x404.co.uk/forum/viewtopic.php?f=4&t=11455
Page 1 of 1

Author:  Fogmeister [ Fri Nov 12, 2010 9:15 am ]
Post subject:  Geek Secret Santa

Just implemented the Fisher-Yates Shuffle for my Secret Santa java program :D

I wanted to set up a program to email out automatically without anyone knowing who's got who but also to ensure that no one had themselves.

I did it last year by shuffling randomly and then double checking that no one had themselves.

This year I have upgraded to use the Fisher-Yates shuffle and so got rid of the need to re-iterate the list to check for duplications etc...

:D

Possibly the geekest secret santa in the world :D

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/