Chet Ramey <[EMAIL PROTECTED]> wrote:
> Mathematically that's correct, but since having $RANDOM return the same
> value twice in a row would greatly diminish its practical use, there is
> special code in there to prevent it.
OK, then. I'm not an expert bash programmer, so probably you're right.
zavandi wrote:
Chet Ramey <[EMAIL PROTECTED]> wrote:
Why would you expect $RANDOM to return the same value twice in succession?
I don't expect it to always return the same value twice in succession,
but if the values are independent of one another, there is a 1/32768
probability the second value w
> Machine Type: i386-redhat-linux-gnu
>
> Bash Version: 3.0.Patch Level: 14
> Release Status: release
>
> Description:
>
> This report seems related to my previous bug report (which I've been
> told was already fixed), but this one doesn't involve subshells, so I
> believe it's a different
Chet Ramey <[EMAIL PROTECTED]> wrote:
> Why would you expect $RANDOM to return the same value twice in succession?
I don't expect it to always return the same value twice in succession,
but if the values are independent of one another, there is a 1/32768
probability the second value will be equal
Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux-gnu
Compiler: i386-redhat-linux-gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386'
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-redhat-linux-gnu'
-DCONF_VENDOR='redhat' -DLOCALEDIR='/usr/sha