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

  1. Newsgroups: comp.sys.atari.st
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!warwick!dcs.warwick.ac.uk!leo
  3. From: leo@dcs.warwick.ac.uk (Leo Hendry)
  4. Subject: Re: Assembler routine that generates random numbers?
  5. Message-ID: <1993Jan26.100836.26156@dcs.warwick.ac.uk>
  6. Sender: news@dcs.warwick.ac.uk (Network News)
  7. Nntp-Posting-Host: granite
  8. Organization: Department of Computer Science, Warwick University, England
  9. References: <1993Jan20.203516.18565@prime.mdata.fi> <C1EtLI.HDI@cck.coventry.ac.uk>
  10. Date: Tue, 26 Jan 1993 10:08:36 GMT
  11. Lines: 19
  12.  
  13. In article <C1EtLI.HDI@cck.coventry.ac.uk> csg022@cch.coventry.ac.uk (PROC) writes:
  14. >In article <1993Jan20.203516.18565@prime.mdata.fi> paetau@mits.mdata.fi (Rasmus Paetau) writes:
  15. >
  16. >>Does anybody know how to generate random numbers on a computer? I know
  17. >>of the GEMDOS/BIOS/XBIOS call that does that, but I wonder if it could
  18. >>be done faster? I'm supposed to do a program that has to do with
  19. >>probability and such things, and I'd like a fast and flexible random
  20. >>routine in assembler.. so if anybody has ideas, they're welcome!
  21. >
  22. >Erm, read the value in the address that holds the screen raster line
  23. >position? I don't know the exact address, but no doubt someone will.
  24.  
  25. I may be wrong, but I think there is a gap between finishing the last line and
  26. starting the next refresh, in which case you would tend to get the same value
  27. a lot of the time.  There is also a delay returning back to the left of the
  28. screen after a line has been sent.  Good idea though, and still useful in some
  29. circumstances even if I'm right.
  30.  
  31. - Leo
  32.