I need to generate random phone numbers in some curl commands across this thread about getting random numbers in the command line and I'm wondering how I can do this with a certain number range. The solution there was just to use
$((RANDOM % 4)) because the user needed to generate a random number between 1-3.
For phone numbers my random number would have to be between 1000000000 and 9999999999. How can I generate a random number with a upper and lower range?
Thanks for any help!