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

/ast/src/cmd/tests/vmalloc/
H A Dtrandom.c22 #define RAND() random() macro
39 #define ALLOCSIZE() (RAND()%100 == 0 ? (RAND()%Z_BIG + Z_BIG/2 ) : \
40 RAND()%10 == 0 ? (RAND()%Z_MED + Z_MED ) : \
41 (RAND()%Z_TINY + 1) )
48 #define TIME(nk,kk,zz) ((nk = kk + (RAND() % TMRANGE(zz)) + 1), \
74 if((RAND()%2) == 0 ) /* flip a coin to see if freeing */
/ast/src/cmd/sort/
H A Dgen.c43 #define RAND() (state.seed=(state.seed*0x63c63cd9L+1)&0xffffffff) macro
69 RAND();
215 k = state.range['f'].min + (RAND() % state.range['f'].max) - 6;
220 state.buf[i++] = "-+"[RAND() % 2];
227 k = state.range['i'].min + (RAND() % state.range['i'].max);
234 k = state.range['p'].min + (RAND() % state.range['p'].max);
239 k = state.range['k'].min ? state.range['k'].min : state.range['r'].min + (RAND() % state.range['r'].max);
244 k = state.range['r'].min + (RAND() % state.range['r'].max);
/ast/src/lib/libvcodex/
H A Dvcsfxsort.c42 #define RAND() (_rand = _rand*16777617 + 3) macro
224 { ln = inv[min[RAND()%sz]+hdr];
225 mn = inv[min[RAND()%sz]+hdr];
226 rn = inv[min[RAND()%sz]+hdr];
387 { if((i = idx[l + RAND()%r]+2) >= nstr-1 || str[i] != x )
/ast/src/lib/libast/vmalloc/
H A Dmalloc.c420 #define RAND() (Rand = Rand*16777617 + 3) macro
440 else for(pos = p = RAND()%Regnum;; )

Completed in 17 milliseconds