diff --git a/examples/random_ips.v b/examples/random_ips.v new file mode 100644 index 0000000000..7fb694541a --- /dev/null +++ b/examples/random_ips.v @@ -0,0 +1,10 @@ +import rand +import time + +fn main() { + rand.seed(time.now().uni) + + for _ in 0..10 { + println('${rand.next(255)}.${rand.next(255)}.${rand.next(255)}.${rand.next(255)}') + } +}