Skip to content

Instantly share code, notes, and snippets.

View Redstoneguy129's full-sized avatar
🎯
Focusing

Cameron Whyte Redstoneguy129

🎯
Focusing
View GitHub Profile

Seed Cracking

Part 1: A little explanation about Java Random

  • java.util.Random, An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. (See Donald Knuth, The Art of Computer Programming, Volume 2, Section 3.2.1.)

  • This class has 6 nifty functions:

    • nextBoolean()
    • nextDouble()
  • nextFloat()