Franco Martelli (HE12026-10-21): > a snippet of code that provides random numbers in a specified range using a > bash function?
man bash /random The answer is immediate. By the way, it seems what you want is not just distinct elements but all the elements too: a permutation. For that, there is a much more efficient algorithm: swap the first element randomly with any of the elements, then the second with any of the elements except the first, etc. Regards, -- Nicolas George

