Categories Uncategorized Bash – generate a random number of a given range Post author By Sergey.Lysenko Post date December 14, 2020 No Comments on Bash – generate a random number of a given range You can generate a random number in bash using this snippet: RAND=$(shuf -i 7000-7999 -n 1) ← How to purge MySQL 8 binary logs → Speedup Docker attached volumes at Mac Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment.