Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!wuarchive!uunet!munnari.oz.au!uniwa!vax7!tnielsena From: Nielsen_AD@cc.curtin.edu.au Newsgroups: comp.sys.mac.hypercard Subject: Re: Initializing the random number generator Message-ID: <6655.27832f88@cc.curtin.edu.au> Date: 3 Jan 91 05:20:07 GMT References: <1154@cvbnetPrime.COM> <5962.277ca804@cc.curtin.edu.au> <3047@polari.UUCP> Organization: Curtin University of Technology Lines: 19 In article <3047@polari.UUCP>, smelly@polari.UUCP (Tom Benedict) writes: > > Regarding the random function in HyperCard. Are you sure your calling > random with the proper argument? I haven't had any problems getting > random number in my script or directly from the msg box. > random(5) generates a random number between 1 and 5 etc... > I didn't notice any problem under HC2.0 or 2.0v2. > Good luck > Tom Benedict -- Well, it turns out that the problem was with the SANE Traps feature of the cache card (Total Systems Integration) installed on my Macintosh IIci. When switched on, it causes HyperCard to give a "random" value of 1, when switched off, everything's fine again. Regards, Andrew.