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 will be equal to the first (or I'm
missing something?).
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.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
Live...Laugh...Love
Chet Ramey, ITS, CWRU [EMAIL PROTECTED] http://tiswww.tis.cwru.edu/~chet/
_______________________________________________
Bug-bash mailing list
Bug-bash@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-bash