RandomTools Flavor: negint
describe a flavor of a random negative integer
Calling Sequence
Parameters
Description
Examples
negint
negint(opt)
opt
-
equation of the form range = value; specify option for the random negative integer
The flavor negint describes a random negative integer in a particular range.
To describe a flavor of a random negative integer, use either negint or negint(opt) (where opt is described following) as the argument to RandomTools[Generate] or as part of a structured flavor.
By default, the flavor negint describes a random negative integer in the range −99999999989..−1, inclusive.
You can modify the properties a negative random integer by using the negint(opt) form of this flavor. The opt argument can contain the following equation.
range = a
This option describes the left endpoint of the range from which the random integer is chosen.
The left endpoint must be of type negint and it describes a random integer in the interval a..−1, inclusive.
with⁡RandomTools:
Generate⁡negint
−36284123260
Generate⁡negint⁡range=−7
−3
seq⁡Generate⁡negint,i=1..10
−92989070395,−52336426898,−77329022769,−27168062734,−78675966108,−22816891714,−20605916125,−42353974212,−66532724364,−40044436554
Generate⁡list⁡negint⁡range=−5,10
−5,−1,−3,−5,−1,−2,−3,−1,−3,−1
Matrix⁡3,3,Generate⁡negint⁡range=−7⁢identical⁡x+negint⁡range=−7,makeproc=true
−4⁢x−5−x−6−5⁢x−7−7⁢x−5−3⁢x−3−6⁢x−6−6⁢x−5−6⁢x−4−x−6
See Also
flavor/structured
rand
RandomTools
RandomTools[Generate]
type/negint
Download Help Document