A-1-i DWeb

This commit is contained in:
2026-04-21 20:31:16 -04:00
parent 83c1690b20
commit 0738f66f0a
5 changed files with 239 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
import random
def random_word(target_index):
with open('1-1000.txt', 'r', encoding='utf-8') as file:
for current_index, line in enumerate(file, 1):
if current_index == target_index:
return line.strip()
buffer = ""
for i in range(random.randint(10, 20)):
buffer += random_word(random.randint(1, 1000)) + " "
print(buffer.strip())