examples: add random_ips.v
parent
01dc267e20
commit
0e852e9c81
|
@ -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)}')
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue