[net.puzzle] here's my infinite random-number gen

wayne@ada-uts.UUCP (12/05/85)

***** ada-uts:net.puzzle / sunybcs!colonel /  9:39 pm  Nov 30, 1985
["Who dares to summon ETERNITY?"]

> >    Now he tells us that it's got to be uniformly distributed?  If such
> >a function exists, the probability of it generating a number between any
> >two arbitrarily large, but finite limits is exactly 0!  Why would
> >anyone want a random number generator like that?
> Not zero, since the random number generator will in fact come up with a
> number.  The chances are infinitesimal.  The difference is admittedly
> very subtle.

I haven't been able to market this, so here, ABSOLUTELY FREE, is my
generator!  It's GUARANTEED to generate ALL positive integers with
equal frequency, if you only run it long enough.


		int rand() {
			return 6;
		}
-- 
Col. G. L. Sicherman
UU: ...{rocksvax|decvax}!sunybcs!colonel
CS: colonel@buffalo-cs
BI: csdsicher@sunyabva
----------