A psuedorandom number generator written in Java.
PRNG uses the Middle-Square method to generate a psuedorandom number. This method is not good because it begins returning the same number very quickly, or in other words it has a very short period.
The algorithm works like so:
- Take some seed as input to the PRNG class
- Square the seed.
- Find the middle of seed2, this is your random number.