From: Jim Choate <ravage@einstein.ssz.com>
To: cypherpunks@einstein.ssz.com (Cypherpunks Distributed Remailer)
Message Hash: 12d59d28706dfaacb32713d411124780cae14ffdb226ddf540638213537cdafe
Message ID: <199810290248.UAA16922@einstein.ssz.com>
Reply To: N/A
UTC Datetime: 1998-10-29 03:06:09 UTC
Raw Date: Thu, 29 Oct 1998 11:06:09 +0800
From: Jim Choate <ravage@einstein.ssz.com>
Date: Thu, 29 Oct 1998 11:06:09 +0800
To: cypherpunks@einstein.ssz.com (Cypherpunks Distributed Remailer)
Subject: Forwarded mail...
Message-ID: <199810290248.UAA16922@einstein.ssz.com>
MIME-Version: 1.0
Content-Type: text
Forwarded message:
> Date: Thu, 29 Oct 1998 00:32:00 +0100
> From: Anonymous <nobody@replay.com>
> In the following snippet of pseudo-code, what should the value of
> SWAP_TIMES be to make the array A[] random, assuming
> that getrand() returned a truly random integer between
> 0 and 255
>
> A[256];
>
> for(i=0;i<SWAP_TIMES;i++){
> x=getrand();
> y=getrand();
> swap(A[x],A[y]);
> }
Each x and y is in and of itself random? If so it doesn't matter how often
you swap the elements.
While there are clearly different levels of pseudo-randomness, true
randomness is or isn't.
____________________________________________________________________
To know what is right and not to do it is the worst cowardice.
Confucius
The Armadillo Group ,::////;::-. James Choate
Austin, Tx /:'///// ``::>/|/ ravage@ssz.com
www.ssz.com .', |||| `/( e\ 512-451-7087
-====~~mm-'`-```-mm --'-
--------------------------------------------------------------------
Return to October 1998
Return to “Jim Choate <ravage@einstein.ssz.com>”
1998-10-29 (Thu, 29 Oct 1998 11:06:09 +0800) - Forwarded mail… - Jim Choate <ravage@einstein.ssz.com>