how to make a text generator?

Just put a list of your desired letters there.

import string
import random # define the random module
S = 681  # number of characters in the string

letters = 'abcdefg' 

ran = ''.join(random.choices(letters, k = S))
print("Generated text is : " + str(ran)) # print the random data

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top