randomized minimum energy finder