model and random search outline