View Subcategory

Generate a random integer in a given range

Produce a random integer between 100 and 200 inclusive
r := Int.random(100..200)

Generate a repeatable random number sequence

Initialise a random number generator with a seed and generate five decimal values. Reset the seed and produce the same values.
rand := Random.makeSeeded(12345)
first := Int[,].fill(0,5).map { }

rand2 := Random.makeSeeded(12345)
second := Int[,].fill(0,5).map { }