'use strict'; var x; var list = []; var min = 100; for(var i=0; i<100; i++){ x = Math.random(); x = x*100; x = Math.floor(x); list.push(x); document.write(x+", "); } document.write("<br><br>"); for(var y=0; y<list.length; y++){ if(list[y]<min){ min = list[y]; } } document.write(min);