Random number from a range in a Bash Script October 6, 2022 by Tarik shuf -i 2000-65000 -n 1 Enjoy! Edit: The range is inclusive.