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

[REBOL] Re: Random numbers for Monte Carlo

From: tomc:darkwing:uoregon at: 10-Aug-2002 10:46

Hi Ladislav, When playing with Monte Carlo for a class a few years back I was content to periodically reseed Rebols RNG with a very random number. (when I just now checked, the HotBits site was up but not serving numbers) comment{ seed the RNG with a radioactive decay induced non-pesudo-random number if connected to the net(and HotBits server up) or with the current time otherwise } random/seed either all [ not error? try[ rnd-pg: read http://www.fourmilab.ch/cgi-bin/uncgi/Hotbits/?fmt=hex&nbytes=2] parse rnd-pg [thru <pre> "^/" copy seed to "^/"] ] [make integer! make binary! seed] [now] On Sat, 10 Aug 2002, Ladislav Mecir wrote: