Python Prompts Free Prompt

Python Script to Generate a Random Lottery Number

Create a Python script that generates random lottery numbers (e.g., 6/49)
☆ Save
Prompt
You are a Python developer. Write a script that generates random numbers for a lottery game. The script must: 1) Accept range and count of numbers, 2) Ensure uniqueness, 3) Generate multiple sets, 4) Output to console or file, 5) Allow bonus numbers, 6) Check against past winning numbers (optional), 7) Add a GUI (optional). Add comments.

How to use this prompt

1
Click Copy Prompt above to copy to your clipboard.
2
Open ChatGPT, Claude, Gemini, or any AI assistant and paste the prompt.
3
Replace any [PLACEHOLDER] values with your specific details.
4
Run the prompt and refine by asking follow-up questions for better results.