Season 2 • Episode: Better or Worse
NUMB3RS - Season 2 - "Better or Worse" - Creating Random Numbers
Step 1 of 5
1Don't Rule for Randomness
Background Scenario:
In the NUMB3RS episode 'Bettor or Worse', Agent Don Eppes needs to assign random two-digit passcodes to 40 members of his FBI task force. Recalling a conversation with his brother Charlie, Don attempts to quickly create a rule to generate pseudo-random numbers starting from an initial 'seed'. We will investigate how Don's deterministic rule works, why it is called 'pseudo-random', and the limitations of recursive number generators.Don proposes the following rule to generate two-digit codes:
- Multiply the seed by .
- Add .
- Divide by .
- Take the first two decimal places of the result as your new pseudo-random number.
Let's walk through an example. Suppose our starting seed () is : Taking the first two decimal places, our next number () is .
Interactive LCG Sandbox (Don't Rule)
Initial Seed ($x_0$):29
Simulation Speed:0.50
2D Spectral Plane Pattern PlotPairs of Consecutive Numbers:
True randomness covers space uniformly. Poor pseudo-random formulas group points along distinct linear paths, exposing clear patterns.
x_n (Min: 0.00, Max: 1.00)
x_n+1 (Min: 0.00, Max: 1.00)
| Iteration | Seed ($x_n$) | Formula: $(41x_n + 35)/101$ | Output () |
|---|