HelenOS sources
rand 80 common/include/stdlib.h extern int rand(void);
rand 80 kernel/generic/common/include/stdlib.h extern int rand(void);
rand 337 uspace/app/gfxdemo/gfxdemo.c rc = gfx_color_new_rgb_i16(rand() % 0x10000, rand() % 0x10000,
rand 338 uspace/app/gfxdemo/gfxdemo.c rand() % 0x10000, &color);
rand 347 uspace/app/gfxdemo/gfxdemo.c rect.p0.x = rand() % (w - 1);
rand 348 uspace/app/gfxdemo/gfxdemo.c rect.p0.y = rand() % (h - 1);
rand 349 uspace/app/gfxdemo/gfxdemo.c rect.p1.x = rect.p0.x + rand() % (w - 1 - rect.p0.x);
rand 350 uspace/app/gfxdemo/gfxdemo.c rect.p1.y = rect.p0.y + rand() % (h - 1 - rect.p0.y);
rand 510 uspace/app/gfxdemo/gfxdemo.c srect.p0.x = rand() % (w - 40);
rand 511 uspace/app/gfxdemo/gfxdemo.c srect.p0.y = rand() % (h - 20);
rand 512 uspace/app/gfxdemo/gfxdemo.c srect.p1.x = srect.p0.x + rand() % (w - srect.p0.x);
rand 513 uspace/app/gfxdemo/gfxdemo.c srect.p1.y = srect.p0.y + rand() % (h - srect.p0.y);
rand 573 uspace/app/gfxdemo/gfxdemo.c offs.x = rand() % (w - 40);
rand 574 uspace/app/gfxdemo/gfxdemo.c offs.y = rand() % (h - 20);
rand 969 uspace/app/gfxdemo/gfxdemo.c rc = gfx_color_new_rgb_i16(rand() % 0x10000, rand() % 0x10000,
rand 970 uspace/app/gfxdemo/gfxdemo.c rand() % 0x10000, &color);
rand 979 uspace/app/gfxdemo/gfxdemo.c rect.p0.x = rand() % (w - 1);
rand 980 uspace/app/gfxdemo/gfxdemo.c rect.p0.y = rand() % (h - 1);
rand 981 uspace/app/gfxdemo/gfxdemo.c rect.p1.x = rect.p0.x + rand() % (w - 1 - rect.p0.x);
rand 982 uspace/app/gfxdemo/gfxdemo.c rect.p1.y = rect.p0.y + rand() % (h - 1 - rect.p0.y);
rand 1001 uspace/app/gfxdemo/gfxdemo.c offs.x = rand() % (w - 40);
rand 1002 uspace/app/gfxdemo/gfxdemo.c offs.y = rand() % (h - 20);
rand 111 uspace/app/hbench/disk/randread.c baddr = (rand() + rand() * RAND_MAX) % (dev_nblocks - nb + 1);
rand 311 uspace/app/tester/mm/common.c unsigned long idx = rand() % mem_blocks_count;
rand 223 uspace/app/tester/mm/malloc1.c unsigned int rnd = rand() % 100;
rand 230 uspace/app/tester/mm/malloc1.c (rand() % (phase->alloc.max_block_size - phase->alloc.min_block_size + 1));
rand 215 uspace/app/tester/mm/malloc3.c unsigned int rnd = rand() % 100;
rand 222 uspace/app/tester/mm/malloc3.c (rand() % (phase->alloc.max_block_size - phase->alloc.min_block_size + 1));
rand 159 uspace/app/tetris/tetris.c const struct shape *tmp = &shapes[rand() % 7];
rand 161 uspace/app/tetris/tetris.c int j = rand() % 4;
rand 161 uspace/dist/src/c/demos/tetris/tetris.c const struct shape *tmp = &shapes[rand() % 7];
rand 163 uspace/dist/src/c/demos/tetris/tetris.c int j = rand() % 4;
rand 80 uspace/lib/c/common/include/stdlib.h extern int rand(void);
rand 79 uspace/lib/c/test/stdlib.c PCUT_TEST(rand)
rand 85 uspace/lib/c/test/stdlib.c r = rand();
rand 100 uspace/lib/c/test/stdlib.c r1 = rand();
rand 102 uspace/lib/c/test/stdlib.c r2 = rand();
rand 107 uspace/lib/c/test/stdlib.c r1 = rand();
rand 109 uspace/lib/c/test/stdlib.c r2 = rand();
rand 1037 uspace/lib/cpp/include/__bits/random.hpp return ::rand();
rand 380 uspace/lib/ieee80211/src/ieee80211_impl.c sequence[i] = (uint8_t) rand();
rand 80 uspace/lib/posix/include/common/stdlib.h extern int rand(void);
rand 96 uspace/srv/net/tcp/ncsim.c sqe->delay = rand() % (1000 * 1000);
HelenOS homepage, sources at GitHub