aboutsummaryrefslogtreecommitdiff
path: root/v_windows/v/old/examples/random_ips.v
diff options
context:
space:
mode:
Diffstat (limited to 'v_windows/v/old/examples/random_ips.v')
-rw-r--r--v_windows/v/old/examples/random_ips.v7
1 files changed, 7 insertions, 0 deletions
diff --git a/v_windows/v/old/examples/random_ips.v b/v_windows/v/old/examples/random_ips.v
new file mode 100644
index 0000000..59c4eff
--- /dev/null
+++ b/v_windows/v/old/examples/random_ips.v
@@ -0,0 +1,7 @@
+import rand
+
+fn main() {
+ for _ in 0 .. 10 {
+ println('${rand.intn(255)}.${rand.intn(255)}.${rand.intn(255)}.${rand.intn(255)}')
+ }
+}