The Applesoft BASIC Reference says that PEEK(78) and PEEK(79) yield a value from a "Random-Number Field" but doesn't say how those numbers are generated. Can anyone tell me how they are generated? In other words, how random are they? Thanks.
The Applesoft BASIC Reference says that PEEK(78) and PEEK(79) yield a value from a "Random-Number Field" but doesn't say how those numbers are generated. Can anyone tell me how they are generated? In other words, how random are they? Thanks.
Please support the defense of Ukraine.
Direct or via Unclutter App
No Ads.
No Trackers.
No Social Media.
All Content Locally Hosted.
Built on Free Software.
We have complied with zero government requests for information.
~ Est. 1999 ~
A pillar of corporate stability since the second millenium.
© 1999-2999 Tom Owad
They come from a counter that increments whenever the computer is looking for keyboard input. So while the PRN generator uses a fixed sequence, this can be used to seed it with a number that comes from a random user interaction.