v/examples/random_ips.v

11 lines
174 B
V
Raw Normal View History

2019-11-20 15:58:24 +01:00
import rand
import time
fn main() {
2019-12-31 17:11:47 +01:00
rand.seed(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)}')
}
}