Path: utzoo!attcan!uunet!decwrl!ucbvax!lti2.UUCP!reg From: reg@lti2.UUCP (Rick Genter x18) Newsgroups: comp.society.futures Subject: Re: C's sins of commission (was: (pssst...fortran?)) Message-ID: <9010011112.AA09383@lti2.lti.uucp> Date: 1 Oct 90 11:12:37 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 12 > OK, how do you implement the function "rnd", which returns a random > number, without letting it have side effects? This is trivial. Pass in the initial seed; rnd() must return the new seed as well as the random number (some algorithms may allow the new seed to be the random number). Let us get the discussion back to *futures*. - reg --- Rick Genter reg%lti.uucp@bu.edu Language Technology, Inc.