Reply to topic  [ 1 post ] 
Geek Secret Santa 
Author Message
I haven't seen my friends in so long
User avatar

Joined: Thu Apr 23, 2009 7:35 pm
Posts: 6580
Location: Getting there
Reply with quote
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

_________________
Oliver Foggin - iPhone Dev

JJW009 wrote:
The count will go up until they stop counting. That's the way counting works.


Doodle Sub!
Game Of Life

Image Image


Fri Nov 12, 2010 9:15 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.