Last active
May 15, 2019 12:42
-
-
Save kzhk75/d4b9347f202222aeb7eb99778d2ec202 to your computer and use it in GitHub Desktop.
This file contains 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/local/opt/python/libexec/bin/python | |
import random | |
def rdmpickup(): | |
n = 3 | |
nmax=40 | |
rdatas=random.sample(range(1,nmax+1),3) | |
print(rdatas) | |
if __name__ == "__main__": | |
rdmpickup() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment