Skip to content

Instantly share code, notes, and snippets.

@0x27
Created May 13, 2017 20:54
Show Gist options
  • Save 0x27/501f368b3a91e8972f9cb59ecf8121b3 to your computer and use it in GitHub Desktop.
Save 0x27/501f368b3a91e8972f9cb59ecf8121b3 to your computer and use it in GitHub Desktop.
#!/usr/bin/python2
# coding: utf-8
# implements: https://twitter.com/twisteddoodles/status/863474505808846848
# we import some random
import random
# first, we create our arrays, and pick random words from them and store.
a = random.choice(["cat", "horse", "seagull", "dolphin", "fire engine"])
b = random.choice(["escape", "make love to", "smother", "dance with"])
c = random.choice(["drumkit", "firework", "toilet", "seagull", "bag"])
d = random.choice(["disco", "airport", "changing room", "tumble dryer"])
# next we build our sentance
sentance = "This sounds like a %s trying to %s a %s in a %s." %(a, b, c, d)
# finally we print it!
print(sentance)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment