Re: Real-Life Random-Number Generator

From: John Smith (JSmith_at_mail.com)
Date: 06/16/04


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.



Relevant Pages

  • Re: Real-Life Random-Number Generator
    ... >another basically random sequence with uniform distribution of the ... >sequence with unknown distribution and outputting a basically random ... you're looking for white vehicle vs. non-white vehicle. ...
    (sci.math)
  • Re: Cantorian pseudomathematics
    ... >> And there's no particular question about what countable additivity ... >> sequence of pairwise disjoint events, ... The fact that each P_n is a uniform distribution is not relevant to ... assertion to another in the background, unnoticed, and uncared for? ...
    (sci.math)
  • Re: Real-Life Random-Number Generator
    ... > another basically random sequence with uniform distribution of the ... > sequence with unknown distribution and outputting a basically random ... last 2 or 3 digits of the e-count is random. ... Thus aliens in outer space, ...
    (sci.math)
  • Re: Real-Life Random-Number Generator
    ... > another basically random sequence with uniform distribution of the ... > sequence with unknown distribution and outputting a basically random ... Truck/SUV was second, ...
    (sci.math)
  • Re: Pitman numerology
    ... residue in the sequence. ... If the targets were uniformly distributed and scarce, ... We don't observe evolution when the targets are scarce, ... Run conventional statistical tests for uniform distribution on them.) ...
    (talk.origins)