def test_uniform_mean_std():
    from lasagne.init import Uniform
    sample = Uniform(std=1.0, mean=5.0).sample((300, 400))
    assert 4.9 < sample.mean() < 5.1
    assert 0.9 < sample.std() < 1.1
dataset/ETHPy150Open Lasagne/Lasagne/lasagne/tests/test_init.py/test_uniform_mean_std/original