Skip to content

Instantly share code, notes, and snippets.

@richo
Created May 26, 2017 01:04
Show Gist options
  • Save richo/69bedd689234f7eca5061a9ffc8259db to your computer and use it in GitHub Desktop.
Save richo/69bedd689234f7eca5061a9ffc8259db to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import random
def get_10_random_numbers():
lst = [i for i in range(1, 11)]
random.shuffle(lst)
return lst
print(get_10_random_numbers())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment