Algosim documentation: RandomInt

RandomInt

Returns a random integer.

Syntax

Description

Examples

stats ≔ L ↦ '(min(L), mean(L), max(L))
custom function
stats(compute(RandomInt(100), n, 1, 1000000))
0
49.513644
99
stats(compute(RandomInt(100, 200), n, 1, 1000000))
100
149.531866
199
stats(compute(RandomInt(256), n, 1, 1000000))
0
127.435639
255

See also