Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 5552

8-bit acorn software: other • Re: PRNG's

$
0
0
I use 256 length loops for my games, but would probably eor with user via T1 in free running mode if I wanted more randomness.
But having a better one is a better option :)
I remember trying one of yours when I was developing ladybug, thanks :heart:

I've just written a 14 byte prng which is a hack of the 16 byte one but this reduces the period to 31459
This one I'm a bit unsure of and needs further testing but is probably ok for games
 

Code:

lda seedlsr aror seed+1eor seed+1sta seed+1adc seedsta seedrts
 
histo14.png
 
I doubt I can get it any smaller without seriously compromising the period

Statistics: Posted by lovebug — Thu Dec 25, 2025 4:23 pm



Viewing all articles
Browse latest Browse all 5552

Trending Articles