Ergodic theory, randomness, and dynamical systems