This function conducts a random search on the given function with the support of parallelization and multiple termination criteria - Information from www.rdocumentation.org