ubot1 / plugins /functions /ran_text.py
sahanind's picture
Upload 96 files
e7ef6c8 verified
raw
history blame contribute delete
289 Bytes
import random
import string
def random_char(y):
"""
Generate a random string of specified length.
Parameters:
- y (int): Length of the random string.
Returns:
str: Random string.
"""
return "".join(random.choice(string.ascii_letters) for _ in range(y))