I'm trying to generate an array of bell curve numbers with a certain number of buckets/discrete values between both ends. For example, I need 30 buckets, following bell curve distribution and add up to 1.0. The number in the first bucket and last bucket would be about 0.015, second 0.02 and so on.
Is there a function built into objective-c or an open source project that can help me generate a bell curve with n buckets?