Energy loss of electrons in random motion