Probability

Pseudorandom Number

A classroom machine produces a sequence of colored tiles.

Pseudorandom Number definition

A pseudorandom number is produced by a deterministic algorithm designed to imitate selected properties of random draws.

In Spanish
número pseudoaleatorio
Topic
Probability simulation and sampling

Pseudorandom Number in a picture

Pseudorandom Number diagramTwo copies of the same generator started in the same state repeat the same sequence.Choose an initial stateThe seed helps initialize itUpdate the state by a ruleThe rule is deterministicRead the next outputThe sequence is designed to look random
Two copies of the same generator started in the same state repeat the same sequence.

How it works

A generator updates an internal state and computes outputs from that state. With the same algorithm and starting state, it produces the same output sequence. Good simulation generators are chosen for their statistical behavior under the intended use.

Worked examples

Can a pseudorandom sequence be reproduced?

Yes. Preserve the algorithm, initial state, and sequence of calls.

Can a simple deterministic generator repeat?

Yes. A generator with a finite state space eventually repeats its state under a fixed update rule.

Does a short run of repeating outputs prove a generator is broken?

No. Random-looking sequences can include repeats, and a short pattern alone is weak evidence.

Common mistake

A repeatable sequence can be useful in simulation, but test the generator for the properties the simulation needs.

Quick check

What determines the output sequence of a deterministic generator?

Can two outputs in the sequence be equal?

Show answer

Yes.

Why is repeatability useful?

Show answer

It lets you reproduce and debug the same experiment.

Sources

Flashcard

Pseudorandom Number

Reveal the definition

A pseudorandom number is produced by a deterministic algorithm designed to imitate selected properties of random draws.

Effortless Math. “Pseudorandom Number.” Math Dictionary.