v/examples/random_ips.v

11 lines
173 B
V
Raw Normal View History

2019-11-20 15:58:24 +01:00
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)}')
}
}