def random_like(x):
    if not isinstance(x, np.ndarray):
        return gp.rand(x.shape)
    else:
        return np.random.random(x.shape)
Return an array of the same shape as `x` filled with random numbers from
dataset/ETHPy150Open BRML/climin/climin/mathadapt.py/random_like