Added random generator with seed