Skip to content

Instantly share code, notes, and snippets.

@reusee
Created November 23, 2012 10:24
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 reusee/4134931 to your computer and use it in GitHub Desktop.
Save reusee/4134931 to your computer and use it in GitHub Desktop.
t
import random
def foo():
n = random.randint(0, 2)
if n == 0:
return 1
elif n == 1:
return "foo"
elif n == 2:
return {}
print foo()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment