Numbers sampled from exponential distribution seems to be incorrect

I think the different shape is just due to different maximum values in the samples and therefore different bin sizes. Just try

q = rand(Exponential(1e5),1000000) 
histogram(q, bins=range(0.0, stop = 1.5E6, length = 256), label="q")
1 Like