Skip to content

Instantly share code, notes, and snippets.

@noveoko
Last active November 2, 2016 15:55
Show Gist options
  • Save noveoko/bdac6c59ef543331fed77c5f23b1c2b8 to your computer and use it in GitHub Desktop.
Save noveoko/bdac6c59ef543331fed77c5f23b1c2b8 to your computer and use it in GitHub Desktop.
import random
from random import shuffle
comics = ['Ricky','Ashley','Kamil','Daniel','Trevor','Tomek']
special_request = 'Christine'
def shufflez(list):
long_list = []
total = 0
while total < 1000:
long_list.append(random.choice(comics))
total += 1
k = set(long_list)
new_list = []
for a in k:
new_list.append(a)
new_list.insert(2,special_request)
return new_list
for a in shufflez(comics):
print(a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment