Random processes and learning