1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: add random_ips.v

This commit is contained in:
Steve Phillips 2019-11-20 06:58:24 -08:00 committed by Alexander Medvednikov
parent 01dc267e20
commit 0e852e9c81

10
examples/random_ips.v Normal file
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)}')
}
}