mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-10 13:48:40 +01:00
11 lines
198 B
Plaintext
11 lines
198 B
Plaintext
import "random" for Random
|
|
|
|
var random = Random.new(12345)
|
|
|
|
var below = 0
|
|
for (i in 1..100) {
|
|
var n = random.float(5)
|
|
if (n < 0) System.print("too low")
|
|
if (n >= 5) System.print("too high")
|
|
}
|