Algorithm to partition an integer?

Me, too, but I handle rhythm separately so that I can change or morph rhythms and melodies separately. It’s also for live performance, so my aim with the integer partitions was to generate look-up tables one time, then put them in a library rather than do anything computation intensive in real time. I don’t really expect to select randomly from the look-up tables, though that’s possible. I do expect to work with arrays that are related in various ways. For example, the partitions of 19 are the basis of all series of intervals in 19-EDO.