Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
RandomTools[MersenneTwister][GenerateInteger] - Generate an integer using the Mersenne Twister Generator
Calling Sequence
GenerateInteger( opt1, opt2, ... )
Parameters
opt1, opt2, ...
-
(optional) argument of the form option=value where option is range
Description
The GenerateInteger command outputs a pseudo-random integer, generated using the MersenneTwister algorithm.
When generating a large number of random integers it is faster to create a generating procedure by calling NewGenerator than to call GenerateInteger.
The following optional arguments are supported. They are input as equations in any order.
range=integer..integer or integer
If the value of the range argument is a range, then the integer is chosen from that range. If the value of the range argument is an integer, then the integer is chosen from the range 0..value-1. The default value is .
Examples
See Also
rand, RandomTools, RandomTools[BlumBlumShub], RandomTools[Generate], RandomTools[LinearCongruence] RandomTools[MersenneTwister], RandomTools[MersenneTwister][GenerateFloat64] RandomTools[MersenneTwister][GenerateFloat], RandomTools[MersenneTwister][GenerateInteger32] RandomTools[MersenneTwister][GenerateUnsignedInt32], RandomTools[MersenneTwister][NewGenerator] RandomTools[QuadraticCongruence]
Download Help Document