Searched refs:rand (Results 1 - 25 of 74) sorted by relevance

123

/haiku/src/tests/servers/app/benchmark/
H A DTestSupport.h16 return v1 + fmod(rand() / 1000.0, (v2 - v1));
18 return v2 + fmod(rand() / 1000.0, (v1 - v2));
H A DRandomLineTest.cpp55 view->SetHighColor(rand() % 255, rand() % 255, rand() % 255);
/haiku/src/system/libroot/posix/musl/prng/
H A Drand.c11 int rand(void) function
/haiku/src/tests/servers/app/window_invalidation/
H A DWindowInvalidation.cpp71 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 Dmain.cpp92 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 Dmain.cpp237 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 DShared.h56 #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 Dmain.cpp19 SetHighColor(rand() % 255, rand() % 255, rand() % 255, 255);
/haiku/src/tests/add-ons/kernel/file_systems/bfs/array/
H A DsmallArray.cpp25 array->Insert(rand());
28 int32 index = int32(1.0 * rand() * array->count / RAND_MAX);
H A Darray.cpp32 int32 num = rand();
/haiku/src/add-ons/screen_savers/message/
H A DMessage.cpp183 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 Dcookie_test.cpp22 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 DSudokuGenerator.cpp77 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 DPulseTest.cpp11 color.red = rand() % 255;
12 color.green = rand() % 255;
/haiku/src/tests/system/libroot/posix/
H A Dmemalign_test.cpp50 sizes[i] = rand() % maxSize;
82 sizes[i] = rand() % maxSize;
114 allocate_random_fixed_alignment(128, maxSize, 1 << (rand() % 18));
H A Dsignal_in_allocator_test2.cpp48 free(malloc(rand() % 10000));
H A Dsignal_in_allocator_test.cpp67 allocations[i] = malloc(rand() % 50);
H A Dpthread_barrier_test.cpp17 int wait_sec = 1 + rand() % 10;
/haiku/src/bin/
H A Dfortune.c46 chosen = rand() % count;
92 file = argv[1 + (rand() % (argc - 1))];
156 count = rand() % count;
/haiku/src/kits/network/libnetapi/
H A DSSL.cpp12 #include <openssl/rand.h>
/haiku/src/tests/kits/package/
H A Dmake_repo.cpp63 int requiresCount = rand() % 10 % i;
65 int reqIndex = rand() % i;
/haiku/src/tests/add-ons/opengl/fake_renderer/
H A DFakeRenderer.cpp75 fDrawColor = make_color(rand() % 0xFF, rand() % 0xFF, rand() % 0xFF);
/haiku/src/tests/servers/app/following/
H A Dmain.cpp30 color.red = rand() / 256;
31 color.green = rand() / 256;
32 color.blue = rand() / 256;
/haiku/src/tests/system/kernel/
H A Dreserved_areas_test.cpp25 size_t size = rand() % 16384 + 8;
46 bool readOnly = false;//(rand() % 256) > 127;
/haiku/src/add-ons/screen_savers/glife/
H A DGLifeGrid.cpp46 m_pbGrid[ (iRow * iWidth) + iColumn] = ((rand() % 6 ) == 0);

Completed in 242 milliseconds

123