Hi,
I'm trying to generate a list of random digits with no repeats. So far i have:
a = random.sample(range(0, 1), n)
which generates a list of random digits in a list with no repeat such as [1, 3, 5, 9] where n is 4.
However, i need it to produce a list of string of digits with no repeats, such as ['1', '3', '5', '9']. Is there any simple way to do this?
Thankyou for reading.