dotfiles/scripts/random-local-ipv4
2020-10-28 20:52:59 +02:00

10 lines
158 B
Python
Executable file

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