random_energy() is not used. Commented.