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

/ast/src/cmd/vczip/tests/
H A Dtio.c82 inc = random()%2;
83 for(k = random()%7 + 1; k > 0 && v < N_LIST; --k, ++v)
85 list[v] = list[v-1] + (random()%17);
86 else list[v] = list[v-1] - (random()%53);
88 list[v] = random()%37 + 1;
H A Dtvchuffgroup.c30 /* generate random data */
35 *d = c + (random()%2);
/ast/src/lib/libast/uwin/
H A Drandom.c40 * @(#)random.c 5.5 (Berkeley) 7/6/88
45 #define random ______random macro
55 #undef random macro
63 extern long int random();
67 /* An improved random number generation package. In addition to the standard
71 then initialized to contain information for random number generation with
76 information and generates far better random numbers than a linear
85 for details). The random number generation technique is a linear feedback
92 also influenced by pseudo-random carries out of the lower bits. The
102 /* For each of the currently supported random numbe
352 extern long int random() function
[all...]
/ast/src/cmd/tests/vmalloc/
H A Dtsafemalloc.c49 { size = random() % 1024 + 1;
59 { p = random() % k;
61 { if(random()%4 == 0 )
H A Dtsharemem.c63 if(k < (N_ALLOC-1) && (random()%100) != 0 )
123 { Piece[k].size = (random()%M_SIZE) + 1;
130 else if(random()%16 == 0)
H A Dtrandom.c22 #define RAND() random()
/ast/src/cmd/tests/aso/
H A Dtlock.c109 r = random()%N_SLOT;
116 r = random()%N_SLOT;
123 r = random()%N_SLOT;
/ast/src/cmd/tests/cdt/
H A Dtrehash.c148 { ssize_t r = random()%k;
176 { ssize_t r = random()%k;
H A Dtsafehash.c148 { ssize_t r = random()%k;
176 { ssize_t r = random()%k;
H A Dtsafetree.c150 { ssize_t r = random()%k;
178 { ssize_t r = random()%k;
H A Dtvsafehash.c213 if((o = dtsearch(deldt, &obj)) && (random()%2) == 0 && dtdelete(deldt, o) == o )
264 { if(random()%2 == 0)
H A Dtvsaferehash.c215 if((o = dtsearch(deldt, &obj)) && (random()%2) == 0 && dtdelete(deldt, o) == o )
266 { if(random()%2 == 0)
H A Dtvsafetree.c212 if((o = dtsearch(deldt, &obj)) && (random()%2) == 0 && dtdelete(deldt, o) == o )
263 { if(random()%2 == 0)
H A Dtvsharemem.c410 if(num%2 == 0 ) /* this searcher searches random elements */
412 { obj.dval = random()%(N_INSERT*W_EXTENT) + 1;
/ast/src/lib/libast/
H A DMakefile208 log__L.c rand48.c random.c rcmd.c rint.c support.c \

Completed in 38 milliseconds