Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!ucbvax!hplabs!pyramid!cbmvax!bryce From: bryce@cbmvax.UUCP (Bryce Nesbitt) Newsgroups: comp.sys.amiga.tech Subject: Re: RangeRand seed Message-ID: <4637@cbmvax.UUCP> Date: 1 Sep 88 23:09:04 GMT References: <148@vlsi.ll.mit.edu> Reply-To: bryce@cbmvax.UUCP (Bryce Nesbitt) Distribution: comp Organization: Commodore Technology, West Chester, PA Lines: 17 In article <148@vlsi.ll.mit.edu> davea@vlsi.ll.mit.edu (Dave Allen) writes: >Somebody recently mentioned the function RangeRand in amiga.lib.... >...What is the function in amiga.lib that initializes the random seed? There is none. You need to add to your code a: extern ULONG RangeSeed; /* For C */ XREF _RangeSeed ;For assembly And set it to your start seed. Usually the number of clock ticks since the machine was powered on is a good place to start the seed. Note that a previous document for this function listed the above as a UWORD. That was wrong! -Bryce