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