Back to the lesson libraryMECHANISM · 11 MIN
M02.6 CONNECT THE MECHANISM

Repeat an experiment without confusing luck with truth

Same code, same data, Monday 87%, Tuesday 84%. Build a tiny random-number generator by hand, learn what a seed really controls, and stop mistaking a lucky run for a real improvement.

LESSON OVERVIEW11 min lesson

Lesson overview

Same code, same data, Monday 87%, Tuesday 84%. Build a tiny random-number generator by hand, learn what a seed really controls, and stop mistaking a lucky run for a real improvement.

What you’ll explore

  • Trace a seeded pseudorandom sequence, and say what to hold fixed and what to vary when checking whether a result repeats.
GO TO THE SOURCE

Original explanations, connected to the research.

Python documentation: pseudorandom generators and seedsPyTorch documentation: reproducibility
Suggest a correction

A precise note can make an explanation better.

Choose the scene and describe what needs attention. Download a feedback file to share through a channel you already use. This page does not send feedback or connect you with a reviewer.

The file includes this note, the scene title, and lesson metadata. Your saved progress and quiz responses are excluded. Download before leaving or reloading to keep your note.