MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

random integer weirdness

  • To: mathgroup at
  • Subject: [mg35772] random integer weirdness
  • From: mark at (Mark Fisher)
  • Date: Tue, 30 Jul 2002 07:22:27 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

There is some real weirdness with Random[Integer, j] for some large
values of j but not others (for both 4.1 and 4.2 versions).

n = 1000;
sim = Table[{j, (2/2^j) * Mean[Table[Random[Integer, 2^j], {n}]]}, 
      {j, 45, 65, 1/8}];

All the points should be near one if the random number generator were
working properly. What gives? Is this just a (very stark) symptom of
what Daniel Lichtblau mentioned in his May 2000 post?

>> The other failure only is apparent in very large big
>> integers, and I do not know exactly how to categorize it.

I just find this very troubling.


  • Prev by Date: Re: Changing default "Printing Settings:Headers & Footers" menu settings?
  • Next by Date: Re: Re: Question about Replace
  • Previous by thread: Re: Extracting Terminal Value
  • Next by thread: RE: random integer weirdness