Repeatable randomization (CUDA).