Problem 20

This is the archived version of this course from the Spring 2013 semester. You might find something more recent by visitning my teaching page.

Program to generate Lehmer LCG sequence

Due: February 1
Points: 2

Write a Java, C++, or Python program to generate the first 500 values from a Lehmer linear congruential generator. Your program should take in three integers on the command line, for the values of m, a, and the seed \(X_0\), in that order.

Submit your program according to the instructions on the submit page.