Middle-square method: Difference between revisions

Content deleted Content added
Daltenty (talk | contribs)
m Example Source Code: Added missing zero to correct sample code
Line 18:
 
//select the middle six digits for the next seed
newseed = (x / 1000) % 1000001000000;
 
//The sequence will almost always go to zero, so an improvement