Fixes the randomization for domain parallelization
Description
Ensures that the random grid points are properly distributed in the domain parallel case.
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.