Posts by Lucas Rocha • 1 point
1 post
-
-1
votes4
answers16556
viewsA: Generate random numbers in Python without repeating
If you are working with python dictionaries: aleatorio = randint(1, 6) test = NomeDict.values() if aleatorio not in test: NomeDict.update({chave: valor})