That should do the trick
function simNumber(num){ return Math.floor(num) + Math.random() }
However, it is worth noting that a random function does not necessarily return a value of two decimal places.
Refinement: Math.random () return> 0 and <1
source share