

def uniform(low=0.0, high=1.0, size=None):
    if (size is None):
        return np.random.uniform(low, high, size)
    size = helpers.normalize_shape(size)
    n = helpers.prod(size)
    n = (n if ((n % 2) == 0) else (n + 1))
    out = cudarray.empty(n)
    random._random_uniform(out._data, low, high, n)
    out.shape = size
    return out

dataset/ETHPy150Open andersbll/cudarray/cudarray/random.py uniform/original