Omniadisce

Computational physics 9.2: Simulated measurements, random numbers with a seed

Lesson Beginner

Join free to take this lesson

Anyone can look around, but taking a lesson needs a free account. With one, your answers are checked step by step and your progress is saved, so you can stop and pick up where you left off on any device.

9 steps ยท about 25 min

By the end you can

  • Make simulated readings with rng.normal(centre, spread, how_many)
  • Check that the readings' standard deviation is close to the spread asked for, and closer with more readings
  • Say what a seed is, and why a program with a seed gives the same numbers every time

Who it is for: Anyone who has done lesson 9.1.

The steps

  1. Readings made by the computer
  2. Ten simulated timings
  3. Is the spread right?
  4. A thousand readings
  5. Only ten readings
  6. Why a seed?
  7. Run it twice
  8. Another experiment
  9. Why fake data?

Discussion 0 comments

Log in to join the discussion.

× Enlarged view