var myNumber = 33.55; var output = Math.random(myNumber) * 10; var num2 = Math.abs(output) console.log(num2)