Maximum-length sequences, cellular automata, and random numbers