Hello Day.
DB> The 6502 CPU in the original Apple had a random number generator.
DB> When I tried to port some code to a PC, I ran into a little bit
DB> of a problem, in that no such algorythm was on the 8088. Here I
DB> had a system that was completely ordered, with gonzo more power
DB> to use, but I could not verify that I would always get a random
DB> number out of it.
That may not have been a function of the 6502. I used an Atari, which also
ran on a 6502. We had a memory location we could grab for random numbers.
They weren't really random of course - but close enough. There was a very
fast clock somewhere in the computer which would determine the value of that
memory location. It was much faster than any program we would run, so it was
close enough to random for our purposes.
Math Guy
--- GoldED 2.50+
---------------
* Origin: The Void (1:206/2717)
|