RASH: a self-adaptive random search method