What is the objective that is optimized with Random Search?
According to the documentation, the function RandomizedSearchCV accepts a scoring string that can take any value from this table and you can even implement your own custom scorer depending on what your goal is. 

The default parameter is None in which case it uses the models score function that is defined to:


  Return the mean accuracy on the given test data and labels.