Last active
December 28, 2018 10:32
-
-
Save mwrites/37e63e7533464ff35505a3621734bffd to your computer and use it in GitHub Desktop.
Python list of random numbers
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
import random | |
def randIntLists(length=5, samples=5): | |
R = [] | |
for _ in range(samples): | |
A = [random.randint(0, 9) for _ in range(length)] | |
R.append(A) | |
return R |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment