changed where random generator is seeded.