Set the Range for JavaScript Random Number Generation: an Example