jeudi 23 février 2017

Python 3: How to get a random 4 digit long number with no repeated digits inside that number?

Ok so I need my program to be able to get a random number that has no repeated digits inside that number. So like 0012 has two 0s and therefore I don't need that, however, 1234 would work. The numbers also need to be JUST 4 digits long.

import random




Aucun commentaire:

Enregistrer un commentaire