232k views
11 votes
Write a statement(s) that, using a loop, that displays 5 random numbers in the range of 1 through 100 (inclusive)

In python please.

1 Answer

3 votes

Answer:

import random

for i in range(5):

print(random.randint(1,100))

User Stoney Eagle
by
6.2k points