# _random.Random - pydoc - phpman

Help on class Random in _random:

_random.Random = class Random(builtins.object)
 |  Random() -> create a random number generator with its own internal state.
 |
 |  Methods defined here:
 |
 |  getrandbits(self, k, /)
 |      getrandbits(k) -> x.  Generates an int with k random bits.
 |
 |  getstate(self, /)
 |      getstate() -> tuple containing the current state.
 |
 |  random(self, /)
 |      random() -> x in the interval [0, 1).
 |
 |  seed(self, n=None, /)
 |      seed([n]) -> None.
 |
 |      Defaults to use urandom and falls back to a combination
 |      of the current time and the process identifier.
 |
 |  setstate(self, state, /)
 |      setstate(state) -> None.  Restores generator state.
 |
 |  ----------------------------------------------------------------------
 |  Static methods defined here:
 |
 |  __new__(*args, **kwargs) from builtins.type
 |      Create and return a new object.  See help(type) for accurate signature.

