def test_uniform_range_as_range():
    from lasagne.init import Uniform

    sample = Uniform((0.0, 1.0)).sample((300, 400))
    assert sample.shape == (300, 400)
    assert 0.0 <= sample.min() < 0.1
    assert 0.9 < sample.max() <= 1.0
dataset/ETHPy150Open Lasagne/Lasagne/lasagne/tests/test_init.py/test_uniform_range_as_range/original