Xref: utzoo talk.bizarre:34493 comp.lang.c:19965 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!usc!bloom-beacon!dschmidt@athena.mit.edu From: dschmidt@athena.mit.edu (Dan'l Schmidt) Newsgroups: talk.bizarre,comp.lang.c Subject: How NOT to write a random number generator Summary: SOMEONE was going to crosspost to t.b and comp.lang.c EVENTUALLY Keywords: Look at the Followup-To: line, you dolt Message-ID: <12755@bloom-beacon.MIT.EDU> Date: 18 Jul 89 03:15:14 GMT Sender: daemon@bloom-beacon.MIT.EDU Reply-To: dschmidt@athena.mit.edu (Dan'l Schmidt) Followup-To: talk.bizarre Organization: the act or process of organizing or of being organized Lines: 11 int egregious_random_number_generator() { static int seed = 27; if (seed % 2) return (seed = seed * 3 + 1); else return (seed = seed / 2); } Dan (they'll never notice)