Searched defs:RAND (Results 1 - 1 of 1) sorted by relevance

/solaris-x11-s11/open-src/app/xlock/sun-src/
H A Dswarm.c60 #define RAND(v) ((random()%(v))-((v)/2)) /* random number around 0 */ macro
130 sp->xv[b] = RAND(7);
131 sp->yv[b] = RAND(7);
151 sp->wxv += RAND(WASPACC);
152 sp->wyv += RAND(WASPACC);
178 sp->xv[random() % sp->beecount] += RAND(3);
179 sp->yv[random() % sp->beecount] += RAND(3);

Completed in 9 milliseconds