def METHOD_NAME(network, limit=None, exclude=None):
    (addresses, yields) = __addr_yields(network, limit)
    net_upper = addresses
    while yields:
        address = random.randrange(1, net_upper)
        to_yield = network[address]
        if to_yield == exclude:
            continue
        addresses -= 1
        yield str(to_yield)
        yields -= 1