Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
How to make the sum of all range sliders equal to a specific value in plain javascript?

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!