Skip to content

Instantly share code, notes, and snippets.

@ryanwilsonperkin
Created March 24, 2016 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryanwilsonperkin/39f9b996c16cc7d186f0 to your computer and use it in GitHub Desktop.
Save ryanwilsonperkin/39f9b996c16cc7d186f0 to your computer and use it in GitHub Desktop.
import random
class ShittyList(list):
def __len__(self):
min, max = 0, super(ShittyList, self).__len__()
return random.randrange(min, max)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment