The Probabilistic Theory of Linear Complexity