python_bot_v2/dicktxt/ForReadDict.py
Pavel_Duron 23328de316 fix "
2022-12-16 22:20:11 +10:00

12 lines
219 B
Python

import random
def RandomDick():
with open('dicktxt/dick_sinonims.txt', 'r', encoding='utf-8') as file:
words = file.readlines()
random_line = random.choice(words).strip()
return random_line