+ 9
Challenge: Create Gift Exchange Randomizer
Description: Some families for Christmas do what is called a gift exchange where everyone puts their name into a pot and they pull out names to see who they will give a gift to that year. Can you create your own program to do this? Requirements: 1. Input should allow 4 or more names, amount should be even number. 2. every person should be assigned another persons name and not their own name. so input: Terry Bob Susan Charlie would output something like (randomized): NAME - ASSIGNMENT Terry - Charlie Bob - Susan Susan - Terry Charlie - Bob
1 Respuesta
+ 2
I didn't use the random class! (but esed shuffle).
https://code.sololearn.com/cLmsIklNARcJ/?ref=app