examples: add random_ips.v

pull/2790/head
Steve Phillips 2019-11-20 06:58:24 -08:00 committed by Alexander Medvednikov
parent 01dc267e20
commit 0e852e9c81
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
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)}')
}
}