Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!caen!math.lsa.umich.edu!sharkey!cfctech!rphroy!kyzyl!tkacik From: tkacik@kyzyl.mi.org (Tom Tkacik) Newsgroups: comp.lang.perl Subject: Re: random numbers? Message-ID: <292@kyzyl.mi.org> Date: 11 Feb 91 11:29:51 GMT References: <16698@venera.isi.edu> <3#3Gz8.j@cs.psu.edu> Organization: Somewhere in Royal Oak, MI Lines: 15 In article <3#3Gz8.j@cs.psu.edu>, flee@cs.psu.edu (Felix Lee) writes: > >Is there some problem with perl's srand and rand functions? > makes the problem less apparent. But LCRGs suffer from many flaws. > Avoid rand() if you want good random numbers. Would it be difficult to put into the Config script, a check to see if either random(BSD) or lrand48(SYSV) exist, and to allow Perl to use them? Both of these are supposed to be much better random number generators than rand(). -- Tom Tkacik | tkacik@kyzyl.mi.org | To rent this space, call 1-800-555-QUIP. ...!rphroy!kyzyl!tkacik |