home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!ucscb.UCSC.EDU!moria
- From: moria@ucscb.UCSC.EDU (Moria Beledain)
- Newsgroups: alt.sys.amiga.demos
- Subject: pseudo random numbers
- Message-ID: <1k19ioINN7l8@darkstar.UCSC.EDU>
- Date: 25 Jan 93 17:55:36 GMT
- Organization: University of California, Santa Cruz
- Lines: 26
- NNTP-Posting-Host: ucscb.ucsc.edu
-
-
- pfibl.
- i am looking for a Good pseudo random number generator.
- the one i am using now was by Leo Schwabb many years ago, and
- i have modified it to now and then EOR in some clock counter
- etc.. But i am still not satisfied!
-
- so who knows some good ideas ?
- .. Maybe a routine to use the HPos.. It has periods of
- very fast fluctuation which if polled slow enough could seem
- quite random..
- .. hmm
- rnd
- move.w seed,d0
- lsl.w #4,d0
- eor.b HPOS,d0
- move.w d0,seed
- rts
-
- .. Hmmm
- Yes the hpos also has periods of constancy, but so you filter those, and
- do something else in addition.
-
- ????
-
- orion
-