function FindHundrethDigit(num){ console.log(num) console.log(parseInt((num%1000)/100)) } FindHundrethDigit(Math.floor(Math.random()*10000))