Skip to main content
Apr 13, 2017 8:01 AM UTC

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);