0
I made a number generator that looked like this:
import random
import math
for i in range(10):
c1 = (random.choice([1, 2, 3, 4, 5, 6, 7, 8, 9]))
c2 = (random.choice([1, 2, 3, 4, 5, 6, 7, 8, 9]))
c3 = (random.choice([1, 2, 3, 4, 5, 6, 7, 8, 9]))
for i in range(90):
print ('{}{}{}'.format(c1, c2, c3, ))
works almost everything, when I run the code in pycharm it generates 90 combinations but all of them are the same but I want them to be random as if I had run the code several times.
A small detail would be to put
range(1, 10)
instead of the explicit erray in this case. Good answer– Miguel
Thank you very much gave right, give me your contact that this code will give me some money and I pay you.
– felipe
No need @Elipe, rest assured. Our goal here is to help the community. By the way, I’m glad my answer solved your problem. Big hug.
– Alexandre Barreiro Neto