code: def random_int_generator(maxrange):
      
      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
docs: 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:
          >>> arcresthelper.common.random_int_generator(15)
          9