Modified random search template