ungleich-tools/generate-coupon.py

10 lines
176 B
Python
Raw Normal View History

2021-12-14 15:01:23 +00:00
#!/usr/bin/env python3
import random
import ipaddress
net = ipaddress.IPv6Network("2a0a:e5c0:11:2::/64")
offset = random.randint(0, 2**64)
coupon = net[offset]
print(coupon)