dotfiles/scripts/random-local-ipv4

11 lines
164 B
Text
Raw Normal View History

2021-04-26 07:20:57 +00:00
#!/usr/bin/env python3
import random
def randbyte() -> int:
2021-04-26 07:20:57 +00:00
return random.randrange(0, 256)
print("127.{}.{}.{}".format(randbyte(), randbyte(), randbyte()))