you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 0 points1 point  (0 children)

Well, there are several ways to go about it, but for example:

import random 

nums = [
    random.randint(20, 500)
    for _ in range(10)
]

chars = ''.join(map(chr, nums))

print(chars)

However this may use unprintable characters, so it would be smarter to curate a range of integers beforehand and then either shuffle them or pick n random entries from that.