get random search prefix