getMaxNumber()
getMaxNumber() : integer
The maximum supported integer.
Returns
integer —The upper integer generation border.
Class AbstractRandomness - The computer randomness abstraction representation.
getInt(null|integer $from, null|integer $to = null) : integer
Generate a random integer number in a certain range.
Note: Passing null
will use the default parameter value.
null|integer | $from | The lowest value to be returned (default => 0). |
null|integer | $to | The highest value to be returned (default => $this->getMaxNumber()). |
Randomly generated integer number.
validatePositiveInteger(integer $integer, boolean $includeZero = false)
Internal method for validation of positive integers.
integer | $integer | The positive integer value. |
boolean | $includeZero | Flag for enabling the zero as a valid value. |
Validation errors.