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

/solaris-x11-s12/open-src/app/xlock/sun-src/
H A Dswarm.c60 #define RAND(v) ((random()%(v))-((v)/2)) /* random number around 0 */ macro
134 sp->xv[b] = (short) RAND(7);
135 sp->yv[b] = (short) RAND(7);
154 sp->wxv += (short) RAND(WASPACC);
155 sp->wyv += (short) RAND(WASPACC);
181 sp->xv[random() % sp->beecount] += (short) RAND(3);
182 sp->yv[random() % sp->beecount] += (short) RAND(3);

Completed in 9 milliseconds