Re: [stella] Random Numbers

Subject: Re: [stella] Random Numbers
From: "Thomas Jentzsch" <tjentzsch@xxxxxx>
Date: Thu, 15 Feb 2001 09:02:57 +0100
i've been thinking about a different idea about a random number generator, which doesn't cost you a lot of cycles and RAM space. 

Why not using the values of INTIM?

1. load a by one decreased value into TIM64T and let the loop countdown not to 0 but to negative values
2. make the checking loop 8 or 16 cycles long
3. get the lower bits (up to 3 or 4) from the last load of INTIM 

Those bits shoud be nearly random, but only if your code before doesn't have a very constant timing (uses branches etc.)
You have to test...
Thomas Jentzsch         | *** Every bit is sacred ! ***
tjentzsch at web dot de |

Alles unter einem Dach: Informationen, Fun, E-Mails. Bei WEB.DE:
Die große Welt der Kommunikation: E-Mail, Fax, SMS, WAP:

Archives (includes files) at
Unsub & more at

Current Thread