Question: 1. Random number generator. In this problem, you will code a random number generator that you can use throughout this course in various programming assignments.
1. Random number generator. In this problem, you will code a random number generator that you can use throughout this course in various programming assignments. See comments at the end of this problem. A. Using a computer language of your choice, write a random number generator using the general multiplicative congruential algorithm. Print out the parameters 11, and M. Further, print out the first 50 random numbers in a table with headers as follows: n K(n) R 0 KORO 1 K(1) R Remember that the table must start with n = 0 and K(0) = seed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
