阅读背景:

如何将javascript中的数字n分成x部分,其中所有部分的总和等于数字?

来源:互联网 

I have a number which I need to divide into 5 parts. However, I want each part to be a random number. But when all the parts are added together, they equal the original number. I am unsure of how to do this with JavaScript. Furthermore, I don't want the min of the divided parts to be 0 or 1, I want to set the min myself.I have a number which I need to divide into 5 p




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: