Javascript Code Function for Truly Random Whole Number

Javascript Function to Generate a Truly Random Whole Number Every Time

Home Short:

Javascript function which will return a 100% truly random number.

To generate a 4 digit number you would call the function rand_num(999, 9999).

To generate a 6 digit number you would call the function rand_num(99999, 999999), etc.

S
H
A
R
E