# Algorithm?

**URL:** <https://forum.kirupa.com/t/algorithm/292691>\
**Category:** Uncategorized\
**Created:** [July 17, 2009, 4:20pm UTC](https://forum.kirupa.com/t/algorithm/292691 "2009-07-17T16:20:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmennenoh](https://avatars.discourse-cdn.com/v4/letter/d/9dc877/32.png) [@dmennenoh](https://forum.kirupa.com/u/dmennenoh)\
**Post date:** [July 17, 2009, 4:20pm UTC](https://forum.kirupa.com/t/algorithm/292691/1 "2009-07-17T16:20:50Z")

</div>

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.
