I'm making an application and it generates avatar icons. It generates them using numpy.random.choices, so it needs weights that there sum is equal to 1 (I multiplied the range sliders' values by 100 for readability). This image has the range sliders I made.
The application uses HTML, CSS, JavaScript as the frontend, and Python as the backend so I can do the calculation in Javascript or Python. I want the sum of all the values of the sliders to equal 100, like when I increase the value of the first slider, the other sliders decrease accordingly. But I don't want the amount increased/decreased to be distributed equally, but according to the value of each slider. Can anyone help? Thanks.