v/examples/random_ips.v

11 lines
179 B
V
Raw Normal View History

2019-11-20 15:58:24 +01:00
import rand
import time
fn main() {
rand.seed(int(time.now().unix))
2019-11-20 15:58:24 +01:00
for _ in 0..10 {
println('${rand.next(255)}.${rand.next(255)}.${rand.next(255)}.${rand.next(255)}')
}
}