code: def randint(self, a: int, b: int, n: Optional[int] = None) -> Union[List[int], int]:
          
          max_n = self.config.MAX_NUMBER_OF_INTEGERS
          return self._generate_randoms(self._request_randints, max_n=max_n, a=a, b=b, n=n)
docs: Generate n numbers as a list or a single one if no n is given.
  
          n is used to minimize the number of requests made and return type changes to be compatible
          with :py:mod:`random`'s interface