Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!aurora!amelia!ames!hao!gatech!purdue!umd5!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: Mystery (was: Improved Random by Doug Gwyn) Message-ID: <7351@brl-smoke.ARPA> Date: 26 Feb 88 13:38:48 GMT References: <479@anuck.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 18 Keywords: random numbers In article <479@anuck.UUCP> jrl@anuck.UUCP (j.r.lupien) writes: >Doug Gwyn posted a nice random number generator based on >one of the Knuth algorithms. His C code was terse to >the extreme, so I have made it a bit more "real". >-------begin file random.c--------- What in the world are you talking about? The code you posted is not remotely related to anything I ever wrote. > As posted by Doug, this would not work on many machines, > and might well crash and burn > on others. The problem was in the pointers. ... What pointers? I posted a portable ANSI C implementation of a linear congruential algorithm, involving NO use of pointers. Please remove my name from your code -- I consider it atrocious and do not want people associating my name with it!