Matrix1 Utility Plug-ins

# MAKE RNG MINSTD

Syntax

MAKE RNG MINSTD RndId MAKE RNG MINSTD RndId, Scale MAKE RNG MINSTD RndId, Lower limit, Upper limit

Description

These commands create a generator that is equivalent to the standard Unix lrand generator. The first form of this command will create a generator that returns a number ranging from 0 up to (but not including) 1. The second form of this command will create a generator that returns a number ranging from 0 up to (but not including) the scale you specify. The third form of this command will create a generator that returns a number ranging from the lower limit specified, up to (but not including) the upper limit specified. Type = Linear Congruential / minstd_rand Cycle size = 2^31-2 Memory usage = 4 bytes Relative speed = 40 Description = "Random Number Generators: Good ones are hard to find", Stephen K. Park and Keith W. Miller, Communications of the ACM, Vol. 31, No. 10, October 1988, pp. 1192-1201

Go back to ...

Matrix1Util_08 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011