Created
May 26, 2017 01:04
-
-
Save richo/69bedd689234f7eca5061a9ffc8259db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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