Chapter 4: Q9E (page 292)
The middle-square method for generating pseudorandom
numbers begin with an n-digit integer. This number is
squared, initial zeros are appended to ensure that the result
has 2n digits, and its middle n digits are used to form the next
number in the sequence. This process is repeated to generate
additional terms.
9. Find the first eight terms of the sequence of four-digit
pseudorandom numbers generated by the middle square
method starting with 2357.
Short Answer
Conclusion The first eight terms of the sequence are: