matherp Guru Joined: 11/12/2012 Location: United KingdomPosts: 11173
Posted: 10:45am 08 May 2020
This is really trivial
Try the attached - takes 75 microseconds to run on the CMM2, x is the seed
function pseudo() as float static integer x=7 static integer a=1103515245 static integer c=12345 static integer m=2^31 x=(a * x + c) mod m pseudo = x/m end function