Creating a Random value in Javascript within limits

    This Javascript snippet creates a random value between those limits:

     

    var dbl_Value = Math.floor(Math.random()*(max-min+1)+min);