Skip to content

Instantly share code, notes, and snippets.

@mwrites
Last active December 28, 2018 10:32
Show Gist options
  • Save mwrites/37e63e7533464ff35505a3621734bffd to your computer and use it in GitHub Desktop.
Save mwrites/37e63e7533464ff35505a3621734bffd to your computer and use it in GitHub Desktop.
Python list of random numbers
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