Introducing the Colour Maximite 2

Author Message


Joined: 16/09/2019
Location: United Kingdom
Posts: 3433
Posted: 08:28am 08 May 2020      

Hi folks,

Probably a silly question but how do we generate reproducible streams of "random" numbers, e.g. for predictable testing of games that use random numbers if we no longer have the RANDOMIZE keyword to seed the generator?

Ok, I can actually think of two ways. Write your own generator in BASIC (slow) or treating the bytes of the firmware as random and PEEKing them, though the latter isn't necessarily constant/predictable between firmware versions.

Either way it seems unfortunate if we have lost the "native" functionality.

Best Regards,