Python Arena

Module 28

Randomness

Random numbers with the random module. Rolling dice with randint, picking and shuffling with choice and shuffle, drawing items without repeats with sample, and the seeds that random numbers grow from.

Steps

  1. Random whole numbers
  2. Choosing and shuffling
  3. Drawing without repeats, and seeds