fix: wrong parameter in energy formula; remove package random