I know this has probably been answered somewhere else before, but I couldn't find anyone who had the same problem as me. I'm trying to generate a random number with two decimal places after it but sometimes it outputs a higher value then the max.

```
((Math.random() * 4) + 1.8).toFixed(2);

```

For some reason, instead of it generating a number between 4 and 1.8, it sometimes goes higher than four to a value like 5.25 for example. Is there something I'm doing wrong? Everything looks alright to me I dont understand why its not working. Any help with this would be greatly appreciated :)