<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_int_generator(maxrange):
 """Generates a random integer from 0 to `maxrange`, inclusive. Args: maxrange (int):
 The upper range of integers to randomly choose. Returns: int: The randomly generated integer from :py:func:`random.randint`. Examples: 9 """

    try:
        return random.randint(0,maxrange)
    except:
        line, filename, synerror = trace()
        raise ArcRestHelperError({
                    "function": "random_int_generator",
                    "line": line,
                    "filename":  filename,
                    "synerror": synerror,
                                    }
                                    )
    finally:
        pass