libwren-sys 0.1.0

FFI bindings for the wren embedded programming language
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
import "random" for Random

var random1 = Random.new(123)
var random2 = Random.new(123)

var correct = 0
for (i in 1..100) {
  // Should produce the same values.
  if (random1.float() == random2.float()) correct = correct + 1
}

System.print(correct) // expect: 100