sort.js
//GENERATING RANDOM VALUES AND SETTING UP BARS

GENERATING RANDOM VALUES AND SETTING UP BARS
GENERATING RANDOM VALUES AND SETTING UP BARS
function randomize() {
  for (let i = 0; i < 10; i++) {values[i] = Math.floor(Math.random() * 90 + 5);}
  for (let i = 0; i < 10; i++) {
    divs[i].style.height = `${values[i]}%`;
    divs[i].innerText = `${values[i]}`;
    divs[i].classList.remove(barChange)
  }
}
function randomize ( ) { for ( let i = 0 ; i < 10 ; i ++ ) { values [ i ] = Math . floor ( Math . random ( ) * 90 + 5 ) ; } for ( let i = 0 ; i < 10 ; i ++ ) { divs [ i ] . style . height = ` ${ values [ i ] } ` ; divs [ i ] . innerText = ` ${ values [ i ] } ` ; divs [ i ] . classList . remove ( barChange ) } }
GENERATING RANDOM VALUES AND SETTING UP BARS
GENERATING RANDOM VALUES AND SETTING UP BARS
//SETTING UP BARS FOR ACTION
