List Commands Library for 50g

10022017, 08:58 AM
Post: #192




RE: List Commands Library for 50g
RAND will never return 0 or 1. I remember from many, many winters ago. Alas, that is all I remember. So I had to look it up:
Random thoughts on HP48 random functions Read the whole thread. Interesting stuff. Basically, it boils down to the fact that a whole class of Random Number Generators use x(n+1) := (x(n)*a + c) mod m eg. the early Random Number generator used for the 41c used c=.211327, a=9821, m=1. (This is from memory, but I think I'm right ;) Now, the algorithm on the 48 uses c=0, and thus can never return 0. Cheers, Werner 41CVâ€ ,42S,48GX,49G,DM42,DM41X,17BII,15CE 

« Next Oldest  Next Newest »

User(s) browsing this thread: 1 Guest(s)