Flux Distribution of Gamma-Ray Emission in Blazars: The Example of Mrk 501