fork does not reset the seed that the rand function uses. This means that all forked children will generate the same (pseudo)random sequences and thus also will generate the same permutation from shuffle. Maybe calling srand helps?
In reply to Re: shuffle in Parallel::ForkManager;
by Corion
in thread shuffle in Parallel::ForkManager;
by plagent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |