jeudi 23 mars 2023

how do i make a random number in python using intervals of 10 [duplicate]

I am currently using random.randint to generate random numbers, but I would like that it will print out numbers in the intervals of 10

eg. 10, 20, 30, 40, 50...

how would I do this?

I have tried: random.randint()

how do I make it generate in multiples of 10 like this?




Aucun commentaire:

Enregistrer un commentaire