Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!alberta!calgary!cpsc!paquette From: paquette@cpsc.ucalgary.ca (Trevor Paquette) Newsgroups: comp.sys.sgi Subject: rand on 4d broken Keywords: Docs are wrong Message-ID: <1551@cs-spool.calgary.UUCP> Date: 23 Jun 89 21:20:59 GMT Sender: news@calgary.UUCP Lines: 15 Just to save some people some headaches.. The docs for 'rand' on the 4d (and I suspect that the 3000 series also have this problem) are WRONG!! They state that rand returns a number between 0 and (2^15)-1. Well rand returns a number between 0 and 32767. (Which I guess is right.. but the numbers do not get above 32767..) This caused me some probs on porting some software from the Sun. Trev ============================================================================== Trevor Paquette/GraphicsLand, Calgary, Alberta ..{ubc-cs,utai,alberta}!calgary!paquette ICBM:51 03 N/114 05 W calgary!paquette@cs.ubc.ca Luminous beings we are, not this crude matter