g05tlc generates the next
values
from a uniform
generator (see
g05sac for details) and applies the transformation
where
is the integer part of the real value
. The function ensures that the values
lie in the closed interval
.
One of the initialization functions
g05kfc (for a repeatable sequence if computed sequentially) or
g05kgc (for a non-repeatable sequence) must be called prior to the first call to
g05tlc.
Not applicable.
Background information to multithreading can be found in the
Multithreading documentation.
Please consult the
X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this function. Please also consult the
Users' Note for your implementation for any additional implementation-specific information.
None.
This example prints five pseudorandom integers from a discrete uniform distribution between
and
, generated by a single call to
g05tlc, after initialization by
g05kfc.
None.