Assignment:
Q1. Starting with a seed of 3461, generate 10 four-digit random numbers using the midsquare method.
Q2. Use the linear congruential method with parameters Z0 = 79, a = 56,214, c = 17, and m = 999 to generate 10 three-digit random numbers.
Provide complete and step by step solution for the question and show calculations and use formulas.