dotfiles/scripts/random-local-ipv4

11 lines
165 B
Text
Raw Normal View History

#!/usr/bin/env python
import random
def randbyte() -> int:
return random.randrange(0, 256)
print("127.{}.{}.{}".format(randbyte(), randbyte(), randbyte()))