fixed problem with slaves sharing the same random generator