Algorithm?

I’m looking for an algorithm that will break down a number into n chunks, so that the sum of the chunks will equal the original number.

Example - take 30,000 and break it into 100 random numbers - but the sum of those numbers needs to be 30,000.

Seems there must be some algorithm to do this, just not sure what it is called.