Conway S. Smith <[EMAIL PROTECTED]> wrote: > [...] > So, that means either I'm wrong and it's not something to do with the > for loop being executed in a subshell, or else the bash script sets up > the subshell's environment so that RANDOM works correctly.
It could very well be about the for loop being executed in a subshell, but it's also about the particular number 0. If I replace "0" with "1" (or any other 15-bit int) it works correctly. > Anyway, good luck with whatever you're doing that needs this. Actually, I was trying to find the maximum value for $RANDOM. Then I read the man page and remembered I was never getting the minimum value. - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs