/haiku/src/tests/servers/app/benchmark/ |
H A D | TestSupport.h | 16 return v1 + fmod(rand() / 1000.0, (v2 - v1)); 18 return v2 + fmod(rand() / 1000.0, (v1 - v2));
|
H A D | RandomLineTest.cpp | 55 view->SetHighColor(rand() % 255, rand() % 255, rand() % 255);
|
/haiku/src/system/libroot/posix/musl/prng/ |
H A D | rand.c | 11 int rand(void) function
|
/haiku/src/tests/servers/app/window_invalidation/ |
H A D | WindowInvalidation.cpp | 71 SetHighColor(rand() % 256, rand() % 256, rand() % 256); 112 switch (rand() % 4) { 119 bounds.right += rand() % 21 - 10; 120 bounds.bottom += rand() % 21 - 10; 134 leftTop.x += rand() % 21 - 10; 135 leftTop.y += rand() % 21 - 10; 148 SetTitle(kChoices[rand() % (sizeof(kChoices) / sizeof(char*))]); 159 SetLook(kLooks[rand() [all...] |
/haiku/src/tests/servers/app/stress_test/ |
H A D | main.cpp | 92 int32 action = CountWindows() > 1 ? rand() % 10 : 0; 99 BWindow* window = WindowAt(rand() % CountWindows()); 110 BWindow* window = WindowAt(rand() % CountWindows()); 120 BWindow* window = WindowAt(rand() % CountWindows()); 131 BWindow* window = WindowAt(rand() % CountWindows()); 135 window->SetWorkspaces(1 << (rand() % 4)); 142 BWindow* window = WindowAt(rand() % CountWindows()); 153 BWindow* window = WindowAt(rand() % CountWindows()); 164 BWindow* window = WindowAt(rand() % CountWindows()); 170 rand() [all...] |
/haiku/src/tests/servers/app/newClipping/ |
H A D | main.cpp | 237 c.red = rand()/256; 238 c.green = rand()/256; 239 c.blue = rand()/256; 251 c.red = rand()/256; 252 c.green = rand()/256; 253 c.blue = rand()/256; 259 c.red = rand()/256; 260 c.green = rand()/256; 261 c.blue = rand()/256; 267 c.red = rand()/25 [all...] |
/haiku/src/add-ons/screen_savers/flurry/ |
H A D | Shared.h | 56 #define random() rand() 57 #define RandFlt(min, max) (min + (max - min) * rand() / (float) RAND_MAX) 58 #define RandBell(scale) (scale * (1.0f - (rand() + rand() + rand()) / ((float) RAND_MAX * 1.5f)))
|
/haiku/src/tests/servers/app/pulsed_drawing/ |
H A D | main.cpp | 19 SetHighColor(rand() % 255, rand() % 255, rand() % 255, 255);
|
/haiku/src/tests/add-ons/kernel/file_systems/bfs/array/ |
H A D | smallArray.cpp | 25 array->Insert(rand()); 28 int32 index = int32(1.0 * rand() * array->count / RAND_MAX);
|
H A D | array.cpp | 32 int32 num = rand();
|
/haiku/src/add-ons/screen_savers/message/ |
H A D | Message.cpp | 183 rgb_color base_color = {(uint8)(rand() % 25), (uint8)(rand() % 25), 184 (uint8)(rand() % 25)}; 206 fFontFamilies.ItemAt(rand() % fFontFamilies.CountItems())->val, NULL); 220 int32 iterations = (rand() % 8) + 14; 225 float fontSize = ((rand() % 320) + 42) * fScaleFactor; 228 if (rand() % 2 == 1) 229 font.SetShear((float) ((rand() % 135) + (rand() % 45))); 235 int x = (rand() [all...] |
/haiku/src/tests/kits/net/cookie/ |
H A D | cookie_test.cpp | 22 int16 charNum = (rand() % 16) + 1; 28 domains[i][c] = (rand() % 26) + 'a'; 34 domains[i][charNum+1+c] = (rand() % 26) + 'a'; 43 int16 domain = (rand() % domainNumber); 57 int16 domain = (rand() % domainNumber);
|
/haiku/src/apps/sudoku/ |
H A D | SudokuGenerator.cpp | 77 x = rand() % field.Size(); 78 y = rand() % field.Size(); 87 value = rand() % field.Size(); 102 field.SetTo(solver.SolutionAt(rand() % solver.CountSolutions())); 124 x = rand() % field.Size(); 125 y = rand() % field.Size();
|
/haiku/src/tests/kits/interface/ |
H A D | PulseTest.cpp | 11 color.red = rand() % 255; 12 color.green = rand() % 255;
|
/haiku/src/tests/system/libroot/posix/ |
H A D | memalign_test.cpp | 50 sizes[i] = rand() % maxSize; 82 sizes[i] = rand() % maxSize; 114 allocate_random_fixed_alignment(128, maxSize, 1 << (rand() % 18));
|
H A D | signal_in_allocator_test2.cpp | 48 free(malloc(rand() % 10000));
|
H A D | signal_in_allocator_test.cpp | 67 allocations[i] = malloc(rand() % 50);
|
H A D | pthread_barrier_test.cpp | 17 int wait_sec = 1 + rand() % 10;
|
/haiku/src/bin/ |
H A D | fortune.c | 46 chosen = rand() % count; 92 file = argv[1 + (rand() % (argc - 1))]; 156 count = rand() % count;
|
/haiku/src/kits/network/libnetapi/ |
H A D | SSL.cpp | 12 #include <openssl/rand.h>
|
/haiku/src/tests/kits/package/ |
H A D | make_repo.cpp | 63 int requiresCount = rand() % 10 % i; 65 int reqIndex = rand() % i;
|
/haiku/src/tests/add-ons/opengl/fake_renderer/ |
H A D | FakeRenderer.cpp | 75 fDrawColor = make_color(rand() % 0xFF, rand() % 0xFF, rand() % 0xFF);
|
/haiku/src/tests/servers/app/following/ |
H A D | main.cpp | 30 color.red = rand() / 256; 31 color.green = rand() / 256; 32 color.blue = rand() / 256;
|
/haiku/src/tests/system/kernel/ |
H A D | reserved_areas_test.cpp | 25 size_t size = rand() % 16384 + 8; 46 bool readOnly = false;//(rand() % 256) > 127;
|
/haiku/src/add-ons/screen_savers/glife/ |
H A D | GLifeGrid.cpp | 46 m_pbGrid[ (iRow * iWidth) + iColumn] = ((rand() % 6 ) == 0);
|