Sparse and Dense Noise

I am a master student working with Jan Antolik in CNRS at Gif Sur Yvette, France. I added functions that are able to produce sparse and dense noise in the function random. It is my first use of git so my apologies if I failed to comply with any style or programming guidance that I was not aware of.