Problem 22

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

Dice roller

Due: February 8
Points: 4

Write a Java, C++, or Python program to generate 50 pseudo-randomly chosen dice rolls and print them out to the screen. Your program should use a Linear Congruential Generator, seeded using the /dev/random file as in Problem 16. You can use a Lehmer LCG or a mixed LCG, and you can choose any parameters you like for the LCG as long as the period is at least 1,000,000.