#import <AMRandomValue.h>
Public Member Functions | |
(id) | - initWithMinValue:maxValue:interval: |
Creates a new random value object. | |
(id) | - initWithMinValue:maxValue: |
Creates a new random value object. | |
(double) | - calcValue |
Generates a new value. | |
Properties | |
double | minValue |
The minimum value. | |
double | maxValue |
The maximum value. | |
double | interval |
The interval between random generated values. |
- (double) calcValue |
Generates a new value.
The interval value returned by the getValue() function is also updated.
Reimplemented from AMValue.
- (id) initWithMinValue: | (double) | _minValue | ||
maxValue: | (double) | _maxValue | ||
Creates a new random value object.
minValue | The minimum generated value. | |
maxValue | The upper limit for the generated value. |
- (id) initWithMinValue: | (double) | _minValue | ||
maxValue: | (double) | _maxValue | ||
interval: | (double) | _interval | ||
Creates a new random value object.
minValue | The minimum generated value. | |
maxValue | The upper limit for the generated value. | |
interval | The interval between generated values. |
- (double) interval [read, write, assign] |
The interval between random generated values.
- (double) maxValue [read, write, assign] |
The maximum value.
- (double) minValue [read, write, assign] |
The minimum value.