mirror of
https://github.com/tcsenpai/llm_rng_project.git
synced 2025-06-04 10:10:04 +00:00
15 lines
461 B
Python
15 lines
461 B
Python
import random
|
|
|
|
|
|
class PromptGenerator:
|
|
def __init__(self):
|
|
self.prompts = [
|
|
"What is the most unpredictable string you can generate?",
|
|
"Generate a random assortment of words unrelated to each other.",
|
|
"Provide a single, creative sentence with no context.",
|
|
]
|
|
|
|
def get_random_prompt(self) -> str:
|
|
""" Get a random prompt from the predefined list. """
|
|
return random.choice(self.prompts)
|