code: function(x, min, max) {
                      x = this._v(x, "r");
                      min = this._v(min, "r", 0);
                      max = this._v(max, "r", 1);
                      if(min > max) throw new Error("Minimum value cannot be greater than maximum value");
  
                      if(x < min || x > max) return 0;
                      if(min === max) return Infinity;
  
  
                      return 1/(max-min);
                  }
docs: Density function for uniform distribution
  
  @param x Location to get density for
  @param min {number} Minimum value
  @param max {number} Maximum value
  @returns {number} Density of the function given the location and parameters