wren_rust 0.1.3

Bindings to the Wren scripting language API
1
2
3
4
5
6
7
8
9
10
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")
}