Extended random search with possible sign flips