LazySets.Hyperrectangle accepts low and high keyword arguments in the constructor, similar to gym.spaces.Box(), although it is only for bounded sets (if you require to use unbounded sets there are other types, such as LazySets.HPolyhedron).
I had a look at gym’s Box Python class; you will find that such functionality (random sampling, membership, inclusion checks) is available in Julia too.