Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from __future__ import print_function
import random
character = (
final_phrase = (
"Men's Legacy",
"The Flight",
"Men's Legacy",
"New Worlds",
"The Future",
"Four Eyes",
"Outer Space",
"The Droids",
"The New World",
"The Void Of Space",
"Time Travel",
"The Mists",
"The New World",
"New Earth",
"My Journey",
"The Machines"
connectors = (
def sample(the_sample= None, n = 1):
result = random.sample(the_sample, n)
if n == 1:
return result[0]
return result
def generate_movie():
phrase = ' '.join([sample(character), sample(connectors), sample(final_phrase)])
return phrase.title()
if __name__ == "__main__":
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment