Implemented basic linear congruential generator