class_docstr: Random number generator module.
class_docstr_tok: ["Random","number","generator","module","."]
docstr: Sets a new random generator seed.
docstr_tok: ["Sets","a","new","random","generator","seed","."]
code: def seed(self, seed: int = 0):
      """Sets a new random generator seed."""
      self.initial_seed = seed
      if self._key is not None:
          self._key.seed(seed)
  
file_path: objax/objax/random/random.py
imports: from typing import Optional, Tuple
  import jax.random
  from objax.module import Module
  from objax.util import class_name
  from objax.variable import RandomState, VarCollection
label_desc: Use image node_id 3 for calling the Generator obj's underlying member method code with example usage: obj.seed(seed) without return types