def random(self, _type=ZR): if _type == ZR or _type == G: return random(self.group, _type) return None
def random(self, _type=ZR): """selects a random element in ZR or G""" if _type == ZR or _type == G: return random(self.ec_group, _type) return None