Forum Discussion
Sgeffert22
Oct 28, 2022Copper Contributor
RandArray
I'm trying to make the total of my RandArray set equal a pre-determined total. Is there a way that this can even be done?
Sgeffert22
Oct 28, 2022Copper Contributor
HansVogelaar
Create a random number generator with 125 values, a range of 1.1-2.1, where the sum of those numbers equal 245
Create a random number generator with 125 values, a range of 1.1-2.1, where the sum of those numbers equal 245
HansVogelaar
Oct 28, 2022MVP
- Sgeffert22Oct 28, 2022Copper ContributorHansVogelaar
Some of the values are over the max of 2.1, is there anyway to fix that?- HansVogelaarOct 28, 2022MVP
Yeah, my idea was stupid. In the formula that I proposed, RANDARRAY generates numbers between 1.1 and 2.1 but then the multiplication to get the sum to 245 messes it up.
I can't think of a way to do what you want at the moment.
- Sgeffert22Oct 28, 2022Copper ContributorHansVogelaar
Okay thank you for trying, I appreciate the effort.