Random Gradient-Free Optimization in Infinite Dimensional Spaces