import random liste=[i for i in range(1000,9999)] if len(set(str(i))) == len(str(i)) a=random.choise(liste) print(a)
random numbers but unrepeated! for example: '1242' no way! because; '2' twice written
Aucun commentaire:
Enregistrer un commentaire