12 lines
134 B
Text
12 lines
134 B
Text
use js.Math
|
|
|
|
let f = fn() {
|
|
Math.floor(Math.random() * 20)
|
|
}
|
|
|
|
loop {
|
|
let n = f()
|
|
print(n)
|
|
if n == 10 { break }
|
|
print(f())
|
|
}
|