rDUniform

fun rDUniform(minimum: Int, maximum: Int, streamNum: Int): Int

Generates a discrete uniform over the range

Return

the random value

Parameters

minimum

the minimum of the range

maximum

the maximum of the range

streamNum

the stream number from the stream provider to use


fun rDUniform(minimum: Int, maximum: Int, stream: RNStreamIfc = defaultRNStream()): Int

Generates a discrete uniform over the range

Return

the random value

Parameters

minimum

the minimum of the range

maximum

the maximum of the range

stream

the random number stream


fun rDUniform(range: IntRange, streamNum: Int): Int
fun rDUniform(range: IntRange, stream: RNStreamIfc = defaultRNStream()): Int

Generates a discrete uniform over the range

Return

the random value

Parameters

range

the range of the random variate

stream

the random number stream