I am following some tutorial at treehouse and had to create a program that generates a random number between two given numbers. I found a formula using math.random from mozilla and they don’t explain how it really works. Anybody dare to explain it to me? Newbie here.

```
function getRandomArbitrary(min, max) {
return Math.random() * (max - min) + min;
}
```

I am confused as to how that really works.

Thank you very much.