This is the archived website of SI 486H from the Spring 2016 semester. Feel free to browse around; you may also find more recent offerings at my teaching page.

Problem 29

What RNGs do Java and Python use?

Due: February 2
Points: 2

Look up the documentation and/or source code for the random number generators used by (respectively) java.util.Random and Python's random class.

For each one, I want to know:

  • What kind of PRNG is used?
  • What specific parameters for that PRNG are implemented?
  • What is the period of the PRNG?
  • How is the default seed value computed? Does it use a "true" entropy source or something else?