Skip to content

Instantly share code, notes, and snippets.

Created August 6, 2021 16:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save JoaquinAcuna97/a51b16c8ff35a99890426373ee51cfa5 to your computer and use it in GitHub Desktop.
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