The controlled random search procedure for function optimization