18.5k views
2 votes
How to make an array of 50 random numbers in python

1 Answer

0 votes

Answer:

import random

array = []

for i in range(50):

array.append(random.randint(1, 100))

print(array)

Step-by-step explanation:

User Shemeer M Ali
by
3.2k points