UniformIntegerDist -- Uniform Integer Distribution
Description
A generator of integral values uniformly distributed across a closed interval [min,max]. (The interval includes both its endpoints.) Setting minValue == maxValue is allowed (and returns minValue).
+ create: (id <Zone>)aZonesetGenerator: (id <SplitRandomGenerator>)splitGeneratorsetVirtualGenerator: (unsigned)vGensetIntegerMin: (int)minValuesetMax: (int)maxValue Use this create message if the generator to be attached is a Split one:
+ create: (id <Zone>)aZonesetGenerator: (id <SimpleRandomGenerator>)simpleGeneratorsetIntegerMin: (int)minValuesetMax: (int)maxValue Use this create message if the generator to be attached is a Simple one:
Phase: Setting
- setIntegerMin: (int)minValuesetMax: (int)maxValue The setIntegerMin:setMax: method sets the minimum and maximum integer values to be returned
Phase: Using
- (int)getIntegerWithMin: (int)minValuewithMax: (int)maxValue The getIntegerWithMin:withMax: returns an integer within the interval [min, max].
- (int)getIntegerMax The getIntegerMax method returns the maximum integer value.
- (int)getIntegerMin The getIntegerMin method returns the minimum integer value.