NumPy · Lesson 4.1 · Pro

Random numbers

Make repeatable random numbers with a seeded generator, draw from common distributions, and sample or shuffle.

In this lesson

  1. A generator with a seed
  2. Common distributions
  3. Pick items with choice
  4. Shuffle for a train/test split