2. Starting with an n digit number, squaring it
and taking the n digit in the middle as the
next number, which is then squared to
obtain the next number.
E.g.: Seed= 5673, Square= 32182929.
1829² = 3345241…
4. Starting with an n digit number, squaring it
and taking the n digit in the middle as the
random number.
For the next seed, add the removing higher
order and lower order digits to the middle n
digit number (random number), which is
then squared to obtain the next number.