476,676 views
10 votes
10 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.

User Ecatmur
by
3.1k points

1 Answer

21 votes
21 votes

Answer:

import random

for i in range(5):

print(random.randint(1,100))

User Benjamin Muschko
by
3.0k points