import random


def get_random_integer(min_result=0, max_result=65535):
    """
    Returns a random integer.

    :param min_result: The minimum number that can be generated.
    :type min_result: :class:`int`

    :param max_result: The maximum number that can be generated.
    :type max_result: :class:`int`

    :returns: :class:`int` -- The generated random number.
    """
    return random.randint(min_result, max_result)