Random number between two numbers (JavaScript)

Here’s my little function to return a random number between two numbers:

The ‘allowZero’ flag does just that.. though if you use this function you may wish to change what it does if it does generate a zero. It’ll work on […]