To sample from a uniform distribution, use the uniform(min, max,
stream) function. The following returns a value from a uniformly
distributed set with a minimum of and a maximum of
using
stream
.
double j = samplesource.uniform(32.12, 55.23, 10);