Improved the random generator. It now works with negative seeds.