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

267
Views
¿Cómo se carga aleatoriamente la lista html?

Ayuda para javascript para aleatorizar esta lista: ¿Cómo aleatorizar una carga del navegador de lista?

 <ul id="list"> <li>1.Italy</li> <li>2.Stockholm</li> <li>3.Helsinki</li> <li>4.Berlin</li> <li>5.Rome</li> <li>6.Madrid</li> </ul>

El mismo sistema de esta matriz:

 <p id="demo"></p> <script> const points = [40, 100, 1, 5, 25, 10]; document.getElementById("demo").innerHTML = points; function myFunction() { for (let i = points.length -1; i > 0; i--) { let j = Math.floor(Math.random() * i) let k = points[i] points[i] = points[j] points[j] = k } document.getElementById("demo").innerHTML = points; } window.onload = myFunction; </script>

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!