Xref: utzoo comp.unix.programmer:920 comp.sources.wanted:15044 Path: utzoo!utgpu!watserv1!watmath!att!linac!pacific.mps.ohio-state.edu!zaphod.mps.ohio-state.edu!samsung!spool2.mu.edu!uunet!ogicse!ogicse.cse.ogi.edu!morgan From: morgan@ogicse.cse.ogi.edu (Clark O. Morgan) Newsgroups: comp.unix.programmer,comp.sources.wanted Subject: looking for uniformly distributed (0..1] random number generator Message-ID: <16610@ogicse.ogi.edu> Date: 28 Jan 91 23:00:13 GMT Sender: morgan@ogicse.ogi.edu Distribution: na Organization: Oregon Graduate Institute (formerly OGC), Beaverton, OR Lines: 14 Hello. I'm currently using a Sequent Symmetry (3.17) executing BSD4.2 :-) . I need access to a uniformly distributed random number generator over the range (0..1] . The RNG should have a reasonably long period. I found a description of a Linear Congruential method that works fine in theory, but suffers from unsigned long overflow in practice (unless, of course, I implement the RNG is ASM :-( ). Anybody have such a generator that's written in C (can't use Fortran, our machine has no f77 compiler)? Or have pointers to books/archives that I should examine? Thanks in advance.