add histogram with uniform sample