JavaScript - generating 6 random percentages that add up to 100
I'm looking to generate 6 random percentages that add up to 100 in
JavaScript. I don't want the difference between the largest and smallest
percentage to be more than say 20%.
What is the most efficient way of doing this?
Many thanks.
No comments:
Post a Comment