[lang-ref] ( random ) ( python )

def test_random():
    import random

    r = random.random()

    assert 0 <= r
    assert r <= 1