Skip to content

Instantly share code, notes, and snippets.

@Frostie314159
Created March 1, 2023 16:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Frostie314159/621a1dcc15377b60867570d4fed6ff8f to your computer and use it in GitHub Desktop.
Save Frostie314159/621a1dcc15377b60867570d4fed6ff8f to your computer and use it in GitHub Desktop.
Generate a random mac address from the range of the VEB Kombinat Robotron. (Yes this is a joke)
#!/bin/python
# This script generates a random mac address, from the mac range of the VEB Kombinat Robotron.
import random
format_string = "00:80:41:{:2X}:{:2X}:{:2X}"
print(format_string.format(*[random.randint(0, 255) for i in range(3)]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment