R
R
researcher11112017-05-29 22:47:21
Python
researcher1111, 2017-05-29 22:47:21

What do you need to replace string.digits in this string in order to get a number from 2 to 7?

a=''.join(random.choice(string.ascii_letters + string.digits) for x in range(32))

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nirvimel, 2017-05-30
@nirvimel

base32_characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'
a = ''.join(random.choice(base32_characters) for x in range(32))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question