random
Generates a controlled pseudo-random number series between min and max values.
Syntax
Initialization
imin -- minimum range limit
imax -- maximum range limit
Performance
kmin -- minimum range limit
kmax -- maximum range limit
The random opcode is similar to linrand and trirand but sometimes I [Gabriel Maldonado] find it more convenient because allows the user to set arbitrary minimum and maximum values.
Examples
Here is an example of the random opcode. It uses the file random.csd.
Its output should include lines like:
i 1 time 0.00067: 894.58566
i 1 time 0.50000: 748.44281
i 1 time 1.00000: 328.29916
WARNING: Seeding from current time 1656666052
i 2 time 2.00067: 690.71466
i 2 time 2.50000: 459.42445
i 2 time 3.00000: 100.85594
See also
Credits
Author: Gabriel Maldonado