import random
def randomSearch(n):
    fmax = 
    Xopt = a
    Yopt = c
    random.seed(10)
    for j in range(0,n-1):
        x = a+ random.random()*(b-a)
        x = c+ random.random()*(d-c)
        fj = f(x,y)