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: reproducibilitySuggest 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.