Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

166
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda