Generates a random integer with the specified number of digits.
The number of digits for the random number. Must be greater than 0.
A random integer with the specified digit length.
Will throw an error if digits is less than or equal to 0.
randomByDigits(3); // Might return 527 Copy
randomByDigits(3); // Might return 527
Generates a random integer with the specified number of digits.