[9660] in Athena Bugs

home help back first fref pref prev next nref lref last post

decmips 7.4G: random()

daemon@ATHENA.MIT.EDU (apk@Athena.MIT.EDU)
Sun Jul 19 15:55:19 1992

From: apk@Athena.MIT.EDU
To: bugs@Athena.MIT.EDU
Date: Sun, 19 Jul 92 15:55:15 EDT

System name:		e51-007-4
Type and version:	KN02ca 7.4G
Display type:		PMAG-DV 

What were you trying to do?
	Use the least significant bit of random().

What's wrong:
	Despite what the manpage claims, the lsb isn't any good.
	random() & 01 --> 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 etc.

What should have happened:
	Something more unexpected.

Please describe any relevant documentation references:
	The fact the manpage was wrong was highly annoying... I assumed if they
	said the lsb was good, it was.  I am a trusting sort.


home help back first fref pref prev next nref lref last post