3 ms·
On morning's light, that won't do what you think. random.sample() gives you a unique sampling. No character will be repeated. try this instead: alphanum =
by aristus 18y ago
On morning's light, that won't do what you think. random.sample() gives you a unique sampling. No character will be repeated. try this instead:
alphanum = string.letters+string.digits
''.join([alphanum[random.randint(0,61)] for i in xrange(12)])
- inklesspen 18y agoYou're quite right; I should have caught that.