🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9667

Re: RangeRand seed

#9667
From: Bryce Nesbitt
Date: Thu, 01 Sep 1988 23:09
17 lines
1048 bytes
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
Technical Details
Message-ID: <4637@cbmvax.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!ucbvax!hplabs!pyramid!cbmvax!bryce
References: <148@vlsi.ll.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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