v/examples/random_ips.v

11 lines
174 B
V

import rand
import time
fn main() {
rand.seed(time.now().unix)
for _ in 0..10 {
println('${rand.next(255)}.${rand.next(255)}.${rand.next(255)}.${rand.next(255)}')
}
}