Python Prompts Free Prompt

Python Script to Generate a Random Number Generator (with seeds)

Create a Python script that generates random numbers with optional seed
☆ Save
Prompt
You are a Python developer. Write a script that generates random integers or floats within a range. Use random module. The script must: 1) Accept count, range, and data type, 2) Allow setting a seed for reproducibility, 3) Output to console or file, 4) Support generating numbers from distributions (normal, uniform), 5) Include a simple statistical summary, 6) Plot histogram, 7) Log parameters. 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.