https://github.com/vmchale/secret-santa
Secret santa shuffling in J
https://github.com/vmchale/secret-santa
Last synced: 11 months ago
JSON representation
Secret santa shuffling in J
- Host: GitHub
- URL: https://github.com/vmchale/secret-santa
- Owner: vmchale
- License: bsd-3-clause
- Created: 2019-07-05T04:12:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-05T22:51:03.000Z (over 6 years ago)
- Last Synced: 2025-01-08T12:07:57.159Z (about 1 year ago)
- Language: J
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Secret Santa
A J script to randomize secret Santa assignments.
## Example
```j
load 'secretSanta.ijs'
secretSanta ('Macbeth' ; 'Duncan' ; 'Malcolm' ; 'Banquo' ; 'Macduff')
┌───────┬───────┬───────┬──────┬───────┐
│Macbeth│Duncan │Malcolm│Banquo│Macduff│
├───────┼───────┼───────┼──────┼───────┤
│Malcolm│Macduff│Macbeth│Duncan│Banquo │
└───────┴───────┴───────┴──────┴───────┘
```