This CD is part of the distribution of LeActiveMath and is used in the exercises suite.
http://www.leactivemath.org/cd
rand1
http://www.leactivemath.org/cd/rand1.ocd
private
1
2005-06-30
random_int
Pseudo-random number generator.
This function with no arguments generates a random integer number.
application
seeded_random_int
Pseudo-random integer number generator with initial seed.
This function generates a random integer number by first resetting the initial
seed value used by the pseudo-random algorithm. Consecutive calls with identical
seed must return the same result since the pseudo-random algorithm is deterministic.
application
7
random_int_lu
Pseudo-random integer number generator contained within lower
and upper limit. This function generates a random integer number that
is contained within the given interval argument.
application
7
seeded_random_int_lu
Pseudo-random integer number generator contained within lower
and upper limit with initial seed. This function generates a random
integer number that is contained within the given lower and upper arguments but
first resets the initial seed value used by the pseudo-random
algorithm. First argument is the seed of random generator, followed by the
lower and upper integer bounds. Consecutive calls with identical seed must
return the same result since the pseudo-random algorithm is deterministic.
application
7
0
10