|
Calling Sequence
|
|
integer
integer(opt)
|
|
Parameters
|
|
opt
|
-
|
equation of the form range = value; specify options for the random integer
|
|
|
|
|
Description
|
|
•
|
The flavor integer describes a random integer in a particular range.
|
•
|
By default, the flavor integer describes a random integer in the range , inclusive.
|
•
|
You can modify the properties of the random integer by using the integer(opt) form of this flavor. The opt argument can contain one or more of the following equations.
|
|
This option specifies the range from which the random integer is chosen.
|
|
The endpoints must be of type integer and they describe a random integer in the interval , inclusive.
|
|
If the left-hand endpoint of the range is greater than the right-hand endpoint, an exception is raised.
|
|
This option specifies one or more individual integers that should be excluded from the possible return values.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (3) |
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
>
|
|
| (7) |
|
|
|