Re: Real-Life Random-Number Generator
From: John Smith (JSmith_at_mail.com)
Date: 06/16/04
- Next message: Torkel Franzen: "Re: Collatz conjecture"
- Previous message: Alexander T. Hamming: "Re: Collatz conjecture"
- In reply to: Leroy Quet: "Real-Life Random-Number Generator"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Jun 2004 14:17:35 GMT
Leroy Quet wrote:
> This is a 2-part question, really.
>
> The first part (which is why I posted this to rec.puzzles) is to come
> up with a clever and original means, using real life, of generating a
> 'random' sequence of, say, 0's and 1's.
> (Extra points if you have actually used this method before.)
>
> The second part (which is why I posted this to sci.math) is to come up
> with an effective algorithm which takes the possibly
> not-uniformly-distributed inputted sequence from part-1 and outputs
> another basically random sequence with uniform distribution of the
> sequence's possible values (say, 50% 0's, 50 % 1's).
> (I bet that there are many well-known algorithms for inputting a
> sequence with unknown distribution and outputting a basically random
> sequence with uniform distribution of possible values.)
>
> For example,
>
> We might be at a busy street intersection, and we take note of all
> vehicles travelling past a stop-sign.
>
> If a SUV or truck passes by, we get the next term of sequence A is a
> 0.
> If any other kind of vehicle passes by, we get the next term of A is
> 1.
>
> Now, we do not know how many SUVs/trucks are in our town versus
> smaller vehicles. So we need a method of getting closer to 50% 0's,
> 50% 1's in our random sequence.
>
> A simple but imperfect method might be to let the first term of
> sequence B equal the first term of A. For each additional term,
> sequence B's k_th term equals its {k-1}th term if sequence A's k_th
> term is 0.
> If sequence A's k_th term is 1,
> then sequence B's k_th term is 1 minus its {k-1}th term.
>
> I would bet a better method would be to have a predetermined
> pseudo-random sequence C (with uniform distribution of its values). If
> A's k-th term is 0 we let B's k-th term be, say, C(2k). If A's k_th
> term is 1, we let B(k) = C(2k-1).
>
> But I bet there are still better methods.
You're making it way too complicated. Never mind the type of
vehicle, just base the sequence on the license plate numbers.
Take a lawn chair out to some busy street and start writing them
down. With enough time (and beer) you can generate a pretty good
one-time pad.
- Next message: Torkel Franzen: "Re: Collatz conjecture"
- Previous message: Alexander T. Hamming: "Re: Collatz conjecture"
- In reply to: Leroy Quet: "Real-Life Random-Number Generator"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|