If we want to create 2 random numbers so that the first number can be divided by the second (simple mathematical division). But so that without the rest! How to generate these 2 numbers?
That's what I tried, but I still have the remainder of the division.
var a = Math.floor(Math.random()*90 + 1); var b = Math.floor(Math.random()*10 + 1); var result = a / b; alert(result);