Documentation Set for Swarm 2.2
Prev | Reference V. Random Library | Next

# UniformUnsignedDist

## Name

UniformUnsignedDist -- Uniform Unsigned Distribution

## Description

A generator of non-negative integral values uniformly distributed across a closed interval [min,max]. (The interval includes both its endpoints.) Setting minValue == maxValue is allowed (and returns minValue).

## Protocols adopted by UniformUnsignedDist

UnsignedDistribution CREATABLE

## Methods

### Phase: Creating

- + create: (id <Zone>)aZone setGenerator: (id <SplitRandomGenerator>)splitGenerator setVirtualGenerator: (unsigned)vGen setUnsignedMin: (unsigned)minValue setMax: (unsigned)maxValue
  Use this create message if the generator to be attached is a Split one:

- + create: (id <Zone>)aZone setGenerator: (id <SimpleRandomGenerator>)simpleGenerator setUnsignedMin: (unsigned)minValue setMax: (unsigned)maxValue
  Use this create message if the generator to be attached is a Simple one:

### Phase: Setting

- - setUnsignedMin: (unsigned)minValue setMax: (unsigned)maxValue
  The setUnsignedMin:setMax: method sets the minimum and maximum unsigned values to be returned

### Phase: Using

- - (unsigned)getUnsignedWithMin: (unsigned)minVal withMax: (unsigned)maxVal
  The getUnsignedWithMin:withMax: returns an unsigned integer within the interval [min, max].

- - (unsigned)getUnsignedMax
  The getUnsignedMax method returns the maximum unsigned value.

- - (unsigned)getUnsignedMin
  The getUnsignedMin method returns the minimum unsigned value.

Prev | Home | Next
UniformIntegerDist | Up | UnsignedDistribution