random parameter search to find optimal parameters for main experiment