Pseudorandom Variables and Simulation
Pseudorandom numbers as simulation inputs
Computers usually do not generate physically random values. Instead, a deterministic algorithm starts from a seed and produces a long sequence that behaves much like random numbers for many practical tasks.
Such values are called pseudorandom. The key benefit is reproducibility: the same algorithm and seed give the same sequence, so a simulation can be checked or debugged exactly.
A common workflow begins with pseudorandom values U that are approximately uniform on [0,1). Transform each U into the variable required by the model. For example, X=a+(b−a)U simulates a uniform value from a to b. To simulate an event with probability p, count a success whenever U<p. Repeating the trial many times gives the Monte Carlo estimate p^=successes/N.
A reproducible simulation transforms seeded pseudorandom uniforms into model outcomes and summarizes repeated trials.
Running Monte Carlo estimate as trials accumulate
Worked example
Suppose a model says an arrival time is uniform from 4 min to 10 min. A generated value of U=0.38 becomes X=4+(10−4)(0.38). That transformation preserves the intended range while using the computer's standard uniform output. If a thousand independent simulated arrivals are classified as late, their late fraction estimates the model's late probability.
The graph shows a typical pattern: early running estimates move noticeably, while larger trial counts usually produce a steadier estimate. They need not move monotonically toward the true value.
Pseudorandom output is useful only if the generator, seed handling, and transformation fit the question; a sequence that repeats too quickly or is poorly seeded can create artificial patterns.
Common mistake: calling a repeated-seed run an independent replication. It is a reproducible rerun of the same simulated sequence, not new random evidence.
A simulation produces N trials, of which k satisfy the event rule. What is the Monte Carlo estimate of the event probability?
Why does the running estimate in the graph still move after many trials?
A reproducible simulation transforms seeded pseudorandom uniforms into model outcomes and summarizes repeated trials.
Running Monte Carlo estimate as trials accumulate