question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The seed() function is broken

See original GitHub issue

The seeds are not consistent across environment instances. This means there’s some other source of non-determinism. I’m guessing this means that contestants have access to unlimited seeds…

Demo script:

import os

from obstacle_tower_env import ObstacleTowerEnv

counter = {}
for i in range(0, 25):
    env = ObstacleTowerEnv('./ObstacleTower/obstacletower.x86_64', worker_id=i)
    env.seed(25)
    env.reset()
    for _ in range(50):
        obs, _, _, _ = env.step(0)
    key = str(obs.flatten().tolist())
    counter[key] = True
    print('got %d start states' % len(counter))
    env.close()

In older versions of the environment, this script works pretty much as expected.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
awjulianicommented, May 21, 2019

Hi all,

We’ve have just pushed the v2.1 release which aims to fix this. Please let us know if you still run into an issue.

0reactions
SungbinChoicommented, May 22, 2019

Hi @awjuliani I see. I didn’t know that tower-seed value range is limited to 100 in Round 2. Thanks~

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python random seed not working with Genetic Programming ...
I am trying to get reproducible results with the genetic programming code in chapter 11 of "Programming Collective Intelligence" by Toby Segaran ...
Read more >
tf.random is broken since Monterey 12.1 - Apple Developer
The workaround doesn't work in a tf.function, this is a real problem. · Good point tf.random. · Unfortunately, it still does not work...
Read more >
`db seed` returns a lot of unrelated information on broken ...
I was missing a dependency for my seed script, but got a lot more output: gitpod /workspace/foo $ npx prisma db seed --preview-feature...
Read more >
Legacy GM - Random Seed Function - Not Working
Hi everyone, I'm having issues with the random_set_seed() function. My game makes levels based on a seed so that when the user returns...
Read more >
Math.randomseed seemingly broken? - Scripting Support
Okay, so I probably just don't understand how it works, but I'm having an issue with randomseed. I have a folder of 100...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found