brainstorm/randomness.py
def create_random_state(self, seed=None):
        """
        Create and return new RandomState object. If seed is given this is
        equivalent to RandomState(seed). Otherwise this will first generate a
        seed and initialize the new RandomState with that.

        Args:
            seed (Optional(int)):
                the seed to initialize the generated RandomState with.
                Defaults to None in which case a seed is first generated by
                the self.generate_seed() method.
        """
        if seed is None:
            seed = self.generate_seed()
        return RandomState(seed)

        Create and return new RandomState object. If seed is given this is
        equivalent to RandomState(seed). Otherwise this will first generate a
        seed and initialize the new RandomState with that.

        Args:
            seed (Optional(int)):
                the seed to initialize the generated RandomState with.
                Defaults to None in which case a seed is first generated by
                the self.generate_seed() method.
        
Create and return new RandomState object. If seed is given this is
equivalent to RandomState. Otherwise this will first generate a
seed and initialize the new RandomState with that.
Create and return new RandomState object . If seed is given this is equivalent to RandomState . Otherwise this will first generate a seed and initialize the new RandomState with that .
def create_random_state(self, seed=None):
        if seed is None:
            seed = self.generate_seed()
        return RandomState(seed)
def create_random_state ( self , seed = None ) : if seed is None : seed = self . generate_seed ( ) return RandomState ( seed )
Create and return new RandomState object.
Create and return new RandomState object .
"""
        Create and return new RandomState object. If seed is given this is
        equivalent to RandomState(seed). Otherwise this will first generate a
        seed and initialize the new RandomState with that.

        Args:
            seed (Optional(int)):
                the seed to initialize the generated RandomState with.
                Defaults to None in which case a seed is first generated by
                the self.generate_seed() method.
        """
self
seed
the seed to initialize the generated RandomState with.
Defaults to None in which case a seed is first generated by
the self.generate_seed() method.
the seed to initialize the generated RandomState with . Defaults to None in which case a seed is first generated by the self . generate_seed () method .