The linear congruential random number generator kernel
__kernel void kRand(global uint* rand ){
int x = get_global_id(0);
rand[x] = 1664525u*rand[x] + 1013904223u;
}
See also GPU Gems 3. Efficient Random Number Generation and Application Using CUDA.