home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / alt / sys / amiga / demos / 2349 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  945 b 

  1. Path: sparky!uunet!olivea!hal.com!darkstar.UCSC.EDU!ucscb.UCSC.EDU!moria
  2. From: moria@ucscb.UCSC.EDU (Moria Beledain)
  3. Newsgroups: alt.sys.amiga.demos
  4. Subject: pseudo random numbers
  5. Message-ID: <1k19ioINN7l8@darkstar.UCSC.EDU>
  6. Date: 25 Jan 93 17:55:36 GMT
  7. Organization: University of California, Santa Cruz
  8. Lines: 26
  9. NNTP-Posting-Host: ucscb.ucsc.edu
  10.  
  11.  
  12. pfibl.
  13. i am looking for a Good pseudo random number generator. 
  14. the one i am using now was by Leo Schwabb many years ago, and
  15. i have modified it to now and then EOR in some clock counter
  16. etc..  But i am still not satisfied!
  17.  
  18. so who knows some good ideas ?
  19. .. Maybe a routine to use the HPos..  It has periods of
  20. very fast fluctuation which if polled slow enough could seem
  21. quite random..
  22. .. hmm
  23. rnd
  24.     move.w    seed,d0
  25.      lsl.w    #4,d0
  26.     eor.b    HPOS,d0
  27.     move.w    d0,seed
  28.     rts
  29.  
  30. .. Hmmm
  31. Yes the hpos also has periods of constancy, but so you filter those, and
  32. do something else in addition.
  33.  
  34. ????
  35.  
  36. orion
  37.