1
0
forked from Mirror/wren
Files
wren/test/random/new_number.wren
2015-10-17 11:03:15 -07:00

13 lines
266 B
Plaintext

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