dotfiles/scripts/random-local-ipv4

11 lines
158 B
Text
Raw Normal View History

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