mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
rand: reorganize: phase 2
This commit is contained in:
parent
67fcce2d46
commit
e649cf84e3
28 changed files with 603 additions and 408 deletions
|
@ -2,9 +2,7 @@ import rand
|
|||
import time
|
||||
|
||||
fn main() {
|
||||
rand.seed(int(time.now().unix))
|
||||
|
||||
for _ in 0..10 {
|
||||
println('${rand.next(255)}.${rand.next(255)}.${rand.next(255)}.${rand.next(255)}')
|
||||
println('${rand.intn(255)}.${rand.intn(255)}.${rand.intn(255)}.${rand.intn(255)}')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue