how can I generate random numbers in specific range in bash using $RANDOM? Numbers should be uniformly distributed in that range.
Asked
Active
Viewed 20 times
0
-
See [BashFAQ/026 (How can I randomize/shuffle the order of lines in a file? ...)](https://mywiki.wooledge.org/BashFAQ/026). The `rand` function produces an unbiased random number in a range. – pjh Mar 14 '22 at 11:37