How NOT to write a random number generator

Ken Johnson ken at aiai.ed.ac.uk
Wed Jul 19 20:20:40 AEST 1989


Here is another good way not to write a random number generator:

	double random( )
	{
		return((double) 2.0);
	}

-- 
Ken Johnson, AI Applications Institute, 80 South Bridge, Edinburgh EH1 1HN
E-mail ken at aiai.ed.ac.uk, phone 031-225 4464 extension 212
`I have read your article, Mr.  Johnson, and I am no wiser than when I
started.' -- `Possibly not, sir, but far better informed.'



More information about the Comp.lang.c mailing list