What does sampling mean in music?

Sampling in music is like a sampler at a restaurant, they give you many different samples of food, and compile it onto a plate. Typically it's just where you get a bunch of different bits of songs and compile them into one whole song.