method
Random.value
Random.value() -> fixed
Returns a deterministic fixed-point value in 0.0..1.0 (exclusive of 1). Multiply it into a range, or compare it against a probability. The sequence is fixed for a given Random.seed.
Example
program Demo {
handler Seed phase Start { Random.seed(value: 7) }
handler Step phase Update {
let t = Random.value()
}
}
}
}