refined random search - TODO: eliminate duplicates