Random Number Generators and Simulation Modeling

Random Number Generators and Simulation Modeling

When building experimental and testing computer simulation models for practically any kind of simulation model or other experiment, it is essential to employ random number generators to approximate system variables. Analysts (whether scientist, businessperson, researcher, etc.) generally employ a variety of both random number generators (RNGs) and pseudo-random generators (PRNGs), each with its own ramifications for the experiment.

Random Number Generators

There are varying complex mathematical definitions of randomness, but it is widely accepted and agreed upon that for a true random number sequence, the numbers of a random sequence must be drawn independently (statistically speaking) of each other. This means that the probability of one number appearing in the sequence has nothing to do with the probability of another appearing in that same sequence, get more info.

The most common example of mutually independent events involves rolling a dice: if a person rolls a two twice, the fact that he rolled a two the first time has nothing to do with the fact that he rolled it a second time. Mathematically speaking, randomness also includes infinite sequences. One cannot create a truly random sequence with say five digits because once you have exhausted every combination of those five digits, the sequence has to employ previously used values, and thusly becomes subject to autocorrelation and bias.

PRNGs approximate certain conditions that define randomness. In terms of simulation modeling, most importantly is that the number sequences employed are uniform, unbiased, have long periods, and do not exhibit autocorrelation. If the number sequence heavily favors a particular number or group of numbers sharing a common property, then the results of the simulation will be skewed towards a particular outcome. For example, if a retail operation simulation offered one of many possible outcomes ultimately predicated on multiples of five appearing in a number sequence, and ninety percent of the sequence generated were multiples of five through a PRNG or RNG, then that simulation’s results would be of little use.

random number sequence

(Of course, a sample of a truly random number sequence could exhibit bias coincidentally however unlikely). Uniformity relates to the space between the numbers: all numbers in the generated sequence should be equally spaced, i.e. 1, 2, 3 or 0.1, 0.2, 0.3 etcetera. Non-uniformity can result in autocorrelation as well; skewing the space between the numbers can skew the numbers generated in the final sequence.

Further, the generator should be efficient-meaning that it can quickly generate numbers without requiring large amounts of processing time or server space.

Terry V Williams

Terry V. Williams is a professional writer who lives in Seward with his family and two cats. He earned M.Ed at Concordia University. He built his career as a freelancer in digital marketing. He proved that any one can make his career in digital marketing and earn a lot. His passions for gardening, and home improvement contribute to his wide knowledge of all things garden and home accessories. Throughout his career, Williams has gained experience in recreational planning, natural landscaping, estate landscaping.