added random function option when more than one function fits the search results