Skip to content

Instantly share code, notes, and snippets.

@nloadholtes
Created December 4, 2019 03:12
Show Gist options
  • Save nloadholtes/49eb026fc2dea352e5794eabf05268fc to your computer and use it in GitHub Desktop.
Save nloadholtes/49eb026fc2dea352e5794eabf05268fc to your computer and use it in GitHub Desktop.
For picking people
def picker(giver, reciever):
for x in giver:
recv = None
while not recv or recv is x:
random.shuffle(people)
recv = people[0]
people.pop(0)
print("%s gives to %s" % (x, recv))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment