Python Prompts Free Prompt

Python Script to Generate a Random D&D Character

Create a Python script that generates a random Dungeons & Dragons character
☆ Save
Prompt
You are a Python developer. Write a script that generates a random D&D character with race, class, stats, and name. Use random. The script must: 1) Choose random race, class, 2) Generate stats (roll 4d6 drop lowest), 3) Assign name from lists, 4) Output character sheet, 5) Save to file, 6) Allow customization, 7) 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.