dotfiles/scripts/random-local-ipv4
2021-04-18 18:06:47 +03:00

10 lines
165 B
Python
Executable file

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