How to generate a random number within a range in Bash?
You can also use shuf (available in coreutils).
shuf -i 1-100000 -n 1