v/examples/random_ips.v

8 lines
143 B
V
Raw Normal View History

2019-11-20 15:58:24 +01:00
import rand
fn main() {
2021-02-23 18:43:44 +01:00
for _ in 0 .. 10 {
println('${rand.intn(255) ?}.${rand.intn(255) ?}.${rand.intn(255) ?}.${rand.intn(255) ?}')
2019-11-20 15:58:24 +01:00
}
}