Would be useful to have a `sample()` function for the specs, like in [gym spaces](https://github.com/Farama-Foundation/Gymnasium/blob/3fda2072d6c1e76e76127eabb080862b7afa6e9a/gymnasium/spaces/space.py#L92). I can raise a PR if this is fine by you guys.