Q:

Generate 3 random integers between 100 and 999 which is divisible by 5 using python programming

belongs to collection: Random Data Generation Exercises

0

Generate 3 random integers between 100 and 999 which is divisible by 5

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Solution:

import random

print("Generating 3 random integer number between 100 and 999 divisible by 5")
for num in range(3):
    print(random.randrange(100, 999, 5), end=', ')

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Random Lottery Pick. Generate 100 random lottery t... >>