home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / atari / st / 21030 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.3 KB  |  29 lines

  1. Newsgroups: comp.sys.atari.st
  2. Path: sparky!uunet!pipex!warwick!coventry!csg022
  3. From: csg022@cch.coventry.ac.uk (PROC)
  4. Subject: Re: Assembler routine that generates random numbers?
  5. Message-ID: <C1EtLI.HDI@cck.coventry.ac.uk>
  6. Sender: news@cck.coventry.ac.uk (news user)
  7. Nntp-Posting-Host: cc_sysh
  8. Organization: Coventry University
  9. References: <1993Jan20.203516.18565@prime.mdata.fi>
  10. Date: Mon, 25 Jan 1993 12:34:29 GMT
  11. Lines: 16
  12.  
  13. In article <1993Jan20.203516.18565@prime.mdata.fi> paetau@mits.mdata.fi (Rasmus Paetau) writes:
  14.  
  15. >Does anybody know how to generate random numbers on a computer? I know
  16. >of the GEMDOS/BIOS/XBIOS call that does that, but I wonder if it could
  17. >be done faster? I'm supposed to do a program that has to do with
  18. >probability and such things, and I'd like a fast and flexible random
  19. >routine in assembler.. so if anybody has ideas, they're welcome!
  20.  
  21. Erm, read the value in the address that holds the screen raster line 
  22. position? I don't know the exact address, but no doubt someone will.
  23.  
  24. -- 
  25. +-----------------------------------------------------------------------------+
  26. | csg022 is M B Procter | Sincerity, if you can fake that you've got it made. |
  27. | Coventry Uni. England |   Whoever said that was thinking of Anne Diamond    |
  28. +-----------------------------------------------------------------------------+
  29.