The clusterSetupRNG
function in the snow package will set a different random number stream on each of the members of a cluster. The clusterSetRNGStream
function in the parallel package does the same thing. Just call one of those functions before calling clusterApplyLB
and everything should work fine.
You may also want to look at the harvestr package for another way to manage the multiple random number streams (in a way that focuses on making the whole process reproducible).