Thread: Random numbers
View Single Post
Old 16 November 2020, 10:50   #11
Thomas Richter
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 977
Originally Posted by a/b View Post
1. short
2. fast
3. accurate
Pick two :P.

This is a quick&dirty one that works for me:
Init:    move.l    #<seed>,d7    ; large prime numbers
    move.l    #$6be7d35b,d6    ; are good...

Rng:    swap    d7
    add.l    d6,d7
    eor.l    d6,d7
It's based on this:
Looks like snake oil to me. Is there anything documented about the properties of this generator.
Thomas Richter is online now  
Page generated in 0.05345 seconds with 11 queries