SchoolWhool
Quizzes and saved progress, freeSign in freeSign in

Tools 1.7Lesson outlineLesson 7 of 7 in Module 1

Random Numbers and Reproducibility

Generate random data you can reproduce.

Free sample. Everything in this module opens with a free account.Video in production.

Lesson outline: Random Numbers and Reproducibility

In this lesson12 parts

  1. 01Where this module's data came from, and why it must regenerate
  2. 02A call that returns different numbers every run
  3. 03default r n g with a seed: a generator with its own state
  4. 04random, integers, normal and choice, and the size argument
  5. 05The generator advances: the same call twice gives different values
  6. 06Sampling rows with choice, with and without replacement
  7. 07permutation: one order applied to both arrays
  8. 08One extra call shifts every value below it
  9. 09np dot random dot seed, and the legacy global stream
  10. 10A seed makes a result repeatable, not correct
  11. 11Regenerating this module's data from its seed
  12. 12Recap and your challenge