Talk:Pseudo-random numbers/Middle-square method: Difference between revisions
Talk:Pseudo-random numbers/Middle-square method (view source)
Revision as of 14:18, 4 January 2022
, 2 years ago→Example runs into constant value
Line 10:
:From wikipedia:
:In mathematics, the middle-square method is a method of generating pseudorandom numbers. In practice it is not a good method, since its period is usually very short and it has some severe weaknesses; repeated enough times, the middle-square method will either begin repeatedly generating the same number or cycle to a previous number in the sequence and loop indefinitely.
:So this algorithm is actually useless nowadays. This task
|