Sample Header Ad - 728x90

Generate random numbers in specific range

136 votes
14 answers
276236 views
After googling a bit I couldn't find a simple way to use a shell command to generate a random decimal integer number included in a specific range, that is between a minimum and a maximum. I read about /dev/random, /dev/urandom and $RANDOM, but none of these can do what I need. Is there another useful command, or a way to use the previous data?
Asked by BowPark (5155 rep)
Jul 4, 2014, 12:18 PM
Last activity: Jul 29, 2025, 08:39 AM