def __init__(self, seed=DEFAULT_SEED):
if seed != self.DEFAULT_SEED:<EOL><INDENT>self._seed = seed<EOL><DEDENT>elif '<STR_LIT>' in os.environ:<EOL><INDENT>self._seed = int(os.environ['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>self._seed = self.DEFAULT_SEED<EOL><DEDENT>if self._seed != self.DEFAULT_SEED:<EOL><INDENT>logging.info("<STR_LIT>" % self._seed)<EOL><DEDENT>self._numpy_rand = np.random.RandomState(seed=self._seed)<EOL>self._theano_rand = RandomStreams(seed=self._seed)<EOL>self._shared_rand = SharedRandomStreams(seed=self._seed)<EOL>self._default_initializer = None<EOL>
Initialize seed and global random variables.