google-deepmind / dm_env

A Python interface for reinforcement learning environments
Apache License 2.0
342 stars 43 forks source link

dm_env.specs.Array.sample() for specs #14

Open eugeneteoh opened 1 year ago

eugeneteoh commented 1 year ago

Would be useful to have a sample() function for the specs, like in gym spaces. I can raise a PR if this is fine by you guys.