Add random indices and remove unecessary debug synchronisation for CUDA kernels