def rrandom():
    """Get the next random number in the range [0.0, 1.0].
    Returns a float."""
    import urllib.request
    import urllib.error
    import urllib.parse
    if checkquota() < 1:
        raise Exception("Your www.random.org quota has already run out.")
    request = urllib.request.Request(
        'http://www.random.org/integers/?num=1&min=0&max=1000000000&col=1&base=10&format=plain&rnd=new')
    request.add_header('User-Agent', 'randomwrapy/0.1 very alpha')
    opener = urllib.request.build_opener()
    numlist = opener.open(request).read()
    num = numlist.split()[0]
    return float(num) / 1000000000