import requests


def get_random_fact(topic: str) -> str:
    """Get a random fact of the supplied topic from NumbersAPI

    Requirements:
        Access to the API is neccessary although a key is not required.

    :param topic: The topic for the fact
    :type topic: str
    :returns: A fact as a standalone sentence.
    :rtype: str
    """

    url = f"http://numbersapi.com/random/{topic}"

    res = requests.get(url)
    res.raise_for_status()

    return res.text