'Produce a random IPv6 address or network with a valid CIDR'

def ipv6(self, network=False):

    address = str(ip_address(random.randint((2 ** IPV4LENGTH), ((2 ** IPV6LENGTH) - 1))))
    if network:
        address += (u'/' + str(random.randint(0, IPV6LENGTH)))
        address = str(ip_network(address, strict=False))
    return address
