random search & extend home php