This works almost fine but the number starts with 0 sometimes:
import random
numbers = random.sample(range(10), 4)
print(''.join(map(str, numbers)))
This works almost fine but the number starts with 0 sometimes.
II've found a lot of examples but none of them guarantee not startingthat the sequence won't start with 00.
Thanks for your help!