#!/usr/local/bin/python3.3 from random import sample from itertools import islice def titles(creatures, versus): while(1): yield "{year}{creature[0]} {vs} {creature[1]}".format(**dict(map( lambda x: (x[0], x[1].__call__()), { "creature": lambda: sample(creatures, 2), "vs": lambda: sample(versus, 1)[0], "year": lambda: "%s: " % sample(range(2050, 3501), 1)[0] if not sample(range(9),1)[0] else "", }.items()))) if __name__ == '__main__': # source: https://en.wikipedia.org/wiki/List_of_The_Asylum_Monsters cr = [ "Bloody Bill","Martians","Jolly Roger","Amazon Jungle Inhabitants","Amazon Ape","Giant Amazon Spiders","Carnivorous Plants","Giant Amazon Scorpions","Amazon Dragons","Aneh-Tet","Velku","Alma","Necromancer Fire Dragon","The Hillside Cannibals","Chris Vale","Supercroc","Zetabots","Nemo Mechanical Squids","Viral Mutants","Spideroid Aliens","Hunter","Mizuchi","Cretaceous Period Creatures","Big Red","Cretaceous Raptor","Cretaceous","Dino-Croc","Acid-Spewing Plants","Sauropod","Pteranodon","Creatures from Journey to the Center of the Earth","Tyrannosaurus Rex","Giant Spiders","Pteranodon 2","Raptors","Lava Worms","Man-Eating Plants","Unspecified Sauropod","Unspecified Theropod","Megalists","Mike Watson","Kirill Flaming Dragon","Maxim Light Dragon","Mega Shark","Giant Octopus","Caprona Island Natives","Tyrannosaurus","Scared Ones","River Octopus","Meganeura","Pteranodon 3","Maron","Spiderlinks","Spring-Heeled Jack's Monsters","The Sea Monster","The Dinosaur","Dragon","Anesidora Ivory and Spring Heeled Jack","Mega Piranha","Cursed Island Monsters","Sirens","Giant Whale","Kraken","Giant Dungeness Crab","Wyverns","Cave Cyclops","Winged Fire Demon","Crocosaurus","Moby Dick","Mega Python","Giant Alligator","Gatoroid","Sauceroid Aliens","MJ12 Sentry","Hibernation Chamber Guardian","Muspelheim Inhabitants","Muspelheim Jackal","Muspelheim Land Worm","VM2 Zombies","Standard VM2 Zombie","Julian's Dog","Runners","VM2 Tiger","Two-Headed Great White Shark","Robo Hitler","Floater Bug Aliens","Bigfoot",] vs = ["versus", "vs", "against"] for title in islice(titles(cr, vs), 100): print(title)
Run
Reset
Share
Import
Link
Embed
Language▼
English
中文
Python Fiddle
Python Cloud IDE
Follow @python_fiddle
Browser Version Not Supported
Due to Python Fiddle's reliance on advanced JavaScript techniques, older browsers might have problems running it correctly. Please download the latest version of your favourite browser.
Chrome 10+
Firefox 4+
Safari 5+
IE 10+
Let me try anyway!
url:
Go
Python Snippet
Stackoverflow Question