How to add experimental resolution to a 1D Histogram in root

In a C++ code, instead of “rndm()” try to use “gRandom->Rndm(1)”.