add protoype of random search
prototype of random search