This commit is contained in:
wassname
2023-11-12 13:57:33 +08:00
parent 1800cdf1d0
commit 28910cfd63
6 changed files with 42 additions and 43 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ class NoopResetEnv(gym.Wrapper):
if self.override_num_noops is not None:
noops = self.override_num_noops
else:
noops = self.unwrapped.np_random.randint(1, self.noop_max + 1)
noops = self.unwrapped.np_random.integers(1, self.noop_max + 1)
assert noops > 0
obs = None
for _ in range(noops):