Randomly generate energies and momenta. Mean and standard deviation of energies calculated