Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: A Rebol Challenge. The Monty Hall Puzzle IN 0 BYTES

From: joel:neely:fedex at: 18-Dec-2001 1:44

Hi, James, Interesting point... James Marsden wrote:
> It seems everyone since Gabriele has removed the randomness > factor from their equations! > > random/seed now > > or some similar quasi-random seed value needs to be chosen or > you repeat the same pattern every time! >
That's why Perl adopted the convention that, if you haven't seeded the PRNG before the first use, it will do so automatically, based on TOD and other hard-to-predict-or-replicate data. The other side of the coin is that you may WANT your PRNG to give the same values every time you run your code (at least during development and testing) so that you can see the effect of any changes in a reliable way. Finally, whether freshly seeded or not, if the PRNG is unbiased the long-term statistics will converge to the same answer. -jn- -- Now when you say that souls don't develop because people become distracted... hey, has anyone noticed that building there before? -- Steve Chapel joel|dot|FIX|PUNCTUATION|neely|at|fedex|dot|com