I need a method for randomly generating histograms. That is to say, I need to fill an array with number values, 0-100, and have the sum of all array elements = 100. I am wondering if there are any known methods for this sort of work or if someone can help me come up with a creative solution. Some error is alright, so if the total was 101 or 99 due to rounding error of sorts, that would not be a problem. This question is a slight simplification of what I am actually doing so I might not be able to use any modules designed for this, but I may be able to grok the code and alter it for my project if anyone has suggestions. Thanks in advance.