Skip to content

Instantly share code, notes, and snippets.

@Lvl4Sword
Created April 24, 2016 06:17
Show Gist options
  • Save Lvl4Sword/71cba72f74e2cfb9c2ff43d8b0de623e to your computer and use it in GitHub Desktop.
Save Lvl4Sword/71cba72f74e2cfb9c2ff43d8b0de623e to your computer and use it in GitHub Desktop.
import random
foo = [1, 2, 3, 4, 5, 6]
random_selection = lambda: random.choice(foo)
random_selection()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment