code: def random(self, n: Optional[int] = None) -> Union[List[float], float]:
          
          return self._generate_randoms(self._request_randoms, max_n=self.config.MAX_NUMBER_OF_FLOATS,
                                        n=n)
docs: Similar to :py:func:`randint`