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 UU that are approximately uniform on [0,1)[0,1). Transform each UU into the variable required by the model. For example, X=a+(b−a)UX=a+(b-a)U simulates a uniform value from aa to bb. To simulate an event with probability pp, count a success whenever U<pU<p. Repeating the trial many times gives the Monte Carlo estimate p^=successes/N\hat p=\text{successes}/N.

A reproducible simulation transforms seeded pseudorandom uniforms into model outcomes and summarizes repeated trials.

A reproducible simulation transforms seeded pseudorandom uniforms into model outcomes and summarizes repeated trials.

Running Monte Carlo estimate as trials accumulate

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.38U=0.38 becomes X=4+(10−4)(0.38)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.

According to the figure, what is the practical consequence of rerunning a deterministic pseudorandom generator with the same seed and algorithm?

A reproducible simulation transforms seeded pseudorandom uniforms into model outcomes and summarizes repeated trials.

A reproducible simulation transforms seeded pseudorandom uniforms into model outcomes and summarizes repeated trials.

Running Monte Carlo estimate as trials accumulate

Running Monte Carlo estimate as trials accumulate

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A simulation produces NN trials, of which kk satisfy the event rule. What is the Monte Carlo estimate of the event probability?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

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.

A reproducible simulation transforms seeded pseudorandom uniforms into model outcomes and summarizes repeated trials.

Running Monte Carlo estimate as trials accumulate

Running Monte Carlo estimate as trials accumulate

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors