
      return d;
    }
    function sampleCounter(name) {
      let count = 0;
      return {
        name: name,
        sample: () => ++count
      };
    }
    function sampleNormal(name, mean, stdev) {
      return {
        name: name,
        sample: vega.randomNormal(mean, stdev).sample
      };
    }
    function sampleUniform(name, min, max) {
      return {
        name: name,
        sample: vega.randomUniform(min, max).sample
      };
    }
    function sampleInteger(name, min, max) {
      retu