Avoid identical random number generators in threads.