home *** CD-ROM | disk | FTP | other *** search
- Path: sn.no!usenet
- From: christod@sn.no (Christopher Dyken)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: RND
- Date: 8 Jan 1996 12:44:33 GMT
- Organization: SN Internett
- Message-ID: <865.6580T940T1920@sn.no>
- References: <709.6578T1027T1962@login.eunet.no> <4ck589$g07@maureen.teleport.com> <805.6579T728T2994@login.eunet.no>
- NNTP-Posting-Host: sinsen.sn.no
- X-Newsreader: THOR 2.2 (Amiga;TCP/IP)
-
- >>Patrick Hanevold (patrick.hanevold@login.eunet.no) wrote:
-
- >> I found this to be random enought for me :)
-
- >> MACRO RND
- >> add.l d1,d0 ;d0 = 'random'
- >> swap d0
- >> add.l d0,d1 ;d1 = 'random'
- >> ENDM
-
- >>; INPUT: A0.L = pointer to the RND structure
- >>; D0.L = rnd value 1
- >>; D1.L = rnd value 2
- >>Random:
- >> ml (a0)+,d0
- >> ml (a0),d1
- >> RND
- >> ml d1,(a0)
- >> ml d0,-(a0)
- >> rts
- >> It look lame but in my effects I work fine (I use it for stuff like
- >> pixelize wipe, fire effects, random object placement etc..)
- >Works fine? Try it on some fractal landscapes. You will get a pattern.
-
- So what? If it looks adequate, what's the point of wasting more cycles?
-
- --
- Christopher Dyken (christod@sn.no | http://www.sn.no/~christod)
- LoungeBar Development
-
-