Category: Streams
Superclass: Stream
My instances are generator streams that produce random numbers, which are floating point values between 0 and 1.

Method category index

instance creation (class)
shortcuts (class)
still unclassified (class)
basic (instance)
still unclassified (instance)
testing (instance)

instance creation (class)

new
Create a new random number generator whose seed is given by the current time on the millisecond clock

seed: anInteger

Create a new random number generator whose seed is anInteger.

top


shortcuts (class)

between: low and: high
Return a random integer between the given extrema

next

Return a random number between 0 and 1 (excluded)

source

Return a standard source of random numbers.

top


still unclassified (class)

mtSize
MT19937 have a size of 624

top


basic (instance)

atEnd
This stream never ends. Always answer false.

between: low and: high

Return a random integer between low and high.

next

Return a random SmallInteger of maximum 32-bits precision.

nextLimit: anInteger

Return a random SmallInteger, uniformly distributed between 0 and anInteger.

nextPut: value

This method should not be called for instances of this class.

top


still unclassified (instance)

setSeed: anInteger
Private - Set the random number seed to anInteger.

top


testing (instance)

chiSquare
Compute the chi-square of the random that this class generates.

chiSquare: n range: r

Return the chi-square deduced from calculating n random numbers in the 0..r range.

top