# Generator

Source: https://www.tensorplay.cn/docs/generated/tensorplay.Generator.html

# Generator

class tensorplay.Generator

get_state(self: tensorplay._C.Generator) &#x2192; tensorplay::Tensor

initial_seed(self: tensorplay._C.Generator) &#x2192; [int](https://docs.python.org/3/library/functions.html#int)

manual_seed(self: tensorplay._C.Generator, seed: [SupportsInt](https://docs.python.org/3/library/typing.html#typing.SupportsInt) | [SupportsIndex](https://docs.python.org/3/library/typing.html#typing.SupportsIndex)) &#x2192; [int](https://docs.python.org/3/library/functions.html#int)

seed(self: tensorplay._C.Generator) &#x2192; [int](https://docs.python.org/3/library/functions.html#int)

set_state(self: tensorplay._C.Generator, new_state: tensorplay::Tensor) &#x2192; [None](https://docs.python.org/3/library/constants.html#None)
