GLOBAL void addRandom( DEVICE LINK_T link[], int link_n, int diapason, unsigned long rnd1, unsigned long rnd2)
{


for (int i = GET_GLOBAL_ID; i < link_n; i += GET_GLOBAL_SIZE) {
...