Skip to content

Instantly share code, notes, and snippets.

@pydanny
Created October 19, 2011 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pydanny/1298848 to your computer and use it in GitHub Desktop.
Save pydanny/1298848 to your computer and use it in GitHub Desktop.
PyCon Review script
#!/usr/bin/python
import random
import webbrowser
target = random.randrange(3, 483)
url = 'http://us.pycon.org/2012/review/%s/' % target
webbrowser.open(url)
@ramalho
Copy link

ramalho commented Oct 19, 2011

instead of random.choice(range(3, 372)) you could just say random.randrange(3, 372). But why this range? I see talks with ids over 400...

@pydanny
Copy link
Author

pydanny commented Oct 19, 2011

Heh, I didn't create the script. I just pasted here for people's benefit. I'll change it soon enough.

@pydanny
Copy link
Author

pydanny commented Oct 19, 2011

Just updated this to match @ramalho's version of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment