Editor's Note: This file was selected as MATLAB Central Pick of the Week
Tool to organize a secret santa (tradition in which members of a group or community are randomly assigned a person to whom they anonymously give a gift). This tradition is also known as: pige de noel, Kris Kringle, amigo secreto, amigo invisible, Christkindl, or simply gift exchange. This tool sends an e-mail to all participants with the assigned person to whom they will give a gift.
Open secretsanta.m to see an example of use.
Copyright (C) 2013 Edgar Guevara Codina
codina@REMOVETHIScactus.iico.uaslp.mx
File Version 1.0
September 30 2013
MATLAB ver 7.10.0.499 (R2010a)
Edgar Guevara (2021). Secret Santa (https://www.mathworks.com/matlabcentral/fileexchange/43713-secret-santa), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
@Jason For the moment you cannot specify exceptions. It would be an interesting feature to add in a future update.
This looks very useful! Is there a way to specify exceptions, for example, if a husband and wife are participating in the exchange, they probably should not draw each other's name. Thanks.