masterthesis/codes/partition/random_ips.py

17 lines
236 B
Python
Raw Permalink Normal View History

2022-04-15 17:21:44 +02:00
#!/usr/bin/env python3
from faker import Faker
def main():
f = Faker()
N = 1000000
ips = set()
while len(ips) < N:
ips.add(f.ipv4())
for ip in ips:
print(ip)
if __name__ == '__main__':
main()