Random compatible for multi-stage and single-stage OpenCL neighbor set