<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def random_public_ip(self):
 """Return a randomly generated, public IPv4 address. :return: ip address """

        randomip = random_ip()
        while self.is_reserved_ip(randomip):
            randomip = random_ip()
        return randomip