Similar to :py:func:`randint`

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