Python Prompts Free Prompt

Python Script to Generate a Random MAC Address

Create a Python script that generates random MAC addresses
☆ Save
Prompt
You are a Python developer. Write a script that generates random MAC addresses in standard format (e.g., 00:11:22:33:44:55). The script must: 1) Ensure unicast and locally administered bits, 2) Generate multiple, 3) Output to console, 4) Save to file, 5) Allow vendor prefix, 6) Validate, 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.