I need to generate a sequence of 8 blocks of numbers. The block sizes can vary between 28 and 32. The part I am stuck is that the sum of all the blocks has to be a specific number. Let's say 243.
I tried a loop block by block where the block size is randomly generated between those values, but the last block either gets to big or to small most of the time. I can keep this running until I get a few that work, but it's not that efficient.
I'm sure there's a better way. Thanks for any help Best wishes