home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.atari.st
- Path: sparky!uunet!pipex!warwick!coventry!csg022
- From: csg022@cch.coventry.ac.uk (PROC)
- Subject: Re: Assembler routine that generates random numbers?
- Message-ID: <C1EtLI.HDI@cck.coventry.ac.uk>
- Sender: news@cck.coventry.ac.uk (news user)
- Nntp-Posting-Host: cc_sysh
- Organization: Coventry University
- References: <1993Jan20.203516.18565@prime.mdata.fi>
- Date: Mon, 25 Jan 1993 12:34:29 GMT
- Lines: 16
-
- 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.
-
- --
- +-----------------------------------------------------------------------------+
- | csg022 is M B Procter | Sincerity, if you can fake that you've got it made. |
- | Coventry Uni. England | Whoever said that was thinking of Anne Diamond |
- +-----------------------------------------------------------------------------+
-