code: def sample_volume(self, count):
          
          samples = sample.volume_rectangular(
              extents=self.primitive.extents,
              count=count,
              transform=self.primitive.transform)
          return samples
docs: Return random samples from inside the volume of the box.
  
          Parameters
          -------------
          count : int
            Number of samples to return
  
          Returns
          ----------
          samples : (count, 3) float
            Points inside the volume