def random_vector(size, mean=0, std=1, rng=None):
    if rng is None or isinstance(rng, int):
        rng = np.random.RandomState(rng)
    return (mean + std * rng.randn(size)).astype(FLOAT)
Create a vector of randomly-initialized values.
dataset/ETHPy150Open lmjohns3/theanets/theanets/util.py/random_vector