Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def seed(self, seed=None):
self.np_random, seed = seeding.np_random(seed)
return [seed]
def _seed(self, seed=None):
self.np_random, seed = seeding.np_random(seed)
return [seed]
def seed(self, seed=1337):
# Seed the random number generator
self.np_random, _ = seeding.np_random(seed)
return [seed]
def _seed(self, seed=None):
self.np_random, seed = seeding.np_random(seed)
return [seed]
def seed(self, seed=None):
self.np_random, seed = seeding.np_random(seed)
return [seed]
def _seed(self, seed=None):
# 产生一个随机化时需要的种子,同时返回一个np_random对象,支持后续的随机化生成操作
self.np_random, seed = seeding.np_random(seed)
return [seed]
def _seed(self, seed=None):
self.np_random, seed1 = seeding.np_random(seed)
# Derive a random seed.
seed2 = seeding.hash_seed(seed1 + 1) % 2**32
pachi_py.pachi_srand(seed2)
return [seed1, seed2]
def _seed(self, seed=None):
self.np_random, seed = seeding.np_random(seed)
return [seed]
def _seed(self, seed=None):
self.np_random, seed = seeding.np_random(seed)
return [seed]
def _seed(self, seed=None):
self.np_random, seed = utils.seeding.np_random(seed)
return [seed]