Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!olivea!orc!inews!iwarp.intel.com!gargoyle!chinet!drt From: drt@chinet.chi.il.us (Donald Tveter) Newsgroups: comp.ai.neural-nets Subject: Fast back-prop patch for Suns Summary: rand() on a Sun is different than on SysV Message-ID: <1990Sep21.235544.903@chinet.chi.il.us> Date: 21 Sep 90 23:55:44 GMT Sender: drt@chinet.chi.il.us (Don Tveter) Organization: Chinet - Chicago Public Access UNIX Lines: 11 For my fast back-prop sources that were recently posted I received a report from Mark Plumbley that on a Sun SparcStation 1 running version 4.0.3 of the OS, rand() returns a value in the range 0 to 2**31 - 1 whereas on Sys V, rand() returns a value in the range 0 to 2**15 - 1. His fix is to replace rand() with (rand() & 32767). Don Tveter 5228 N. Nashville Ave. Chicago, Illinois 60656 drt@chinet.chi.il.us