I have a value, say 20010. I want to randomly divide this value over 24 hours. So basically split the value into a 24 slot big array where all slots are randomly big.
Wh
Assuming that you don't want to have much (any) control over the distribution of sizes, here's an approach that would work (pseudo-code).
Notes