Exponential density with random sample and histogram