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

123

/haiku/src/tests/system/kernel/util/
H A DOrderedMapTest.h77 return rand() % fDifferentValues;
85 sprintf(buffer, "%ld", rand() % fDifferentValues);
822 int32 index = rand() % (v.Count());
862 int32 index = rand() % (i + 1);
/haiku/src/add-ons/media/media-add-ons/esound_sink/
H A DESDEndpoint.cpp108 key[i] = (char)(rand() % 256);
/haiku/src/tests/system/network/tcp_shell/
H A Dtcp_shell.cpp958 || (sRandomDrop > 0.0 && (1.0 * rand() / RAND_MAX) > sRandomDrop))
964 add = (bigtime_t)(1.0 * rand() / RAND_MAX * 500000) - 250000;
966 sRoundTripTime += (bigtime_t)(1.0 * rand() / RAND_MAX * 150000);
1269 && (1.0 * rand() / RAND_MAX) > sRandomReorder) {
/haiku/src/apps/haikudepot/util/
H A DStorageUtils.cpp306 buffer[i] = 65 + (abs(rand()) % 26);
/haiku/src/bin/unzip/
H A Dcrypt.c45 the crypthead() function. The standard rand() library function is
48 seed value as argument to determine the starting point of the rand()
58 standard UNIX C runtime library functions: time(), rand(), srand().
69 most implementations of rand() and srand(), only the lower 16 bits are
185 * output of rand() to get less predictability, since rand() is
193 c = (rand() >> 7) & 0xff;
H A Dcryptf.c48 the crypthead() function. The standard rand() library function is
51 seed value as argument to determine the starting point of the rand()
61 standard UNIX C runtime library functions: time(), rand(), srand().
72 most implementations of rand() and srand(), only the lower 16 bits are
188 * output of rand() to get less predictability, since rand() is
196 c = (rand() >> 7) & 0xff;
/haiku/src/servers/app/stackandtile/
H A DSATWindow.cpp482 int16 randNumber = rand();
/haiku/src/kits/network/libnetservices/
H A DHttpForm.cpp659 fMultipartBoundary << (char)(rand() % 10 + '0');
/haiku/src/servers/app/
H A DView.cpp392 case 0: color.green = rand() % 256; break;
393 case 1: color.blue = rand() % 256; break;
/haiku/src/tests/kits/app/bmessage/
H A DMessageSpeedTest.cpp85 search << rand() % count; \
/haiku/src/system/libroot/posix/glibc/stdlib/
H A Dstdlib.h126 /* The largest number rand will return (same as INT_MAX). */
421 The `rand' and `srand' functions are required by the ANSI standard.
474 extern int rand (void) __THROW;
/haiku/src/preferences/repositories/
H A DRepositoriesView.cpp480 fLastCompletedTimerId = rand();
/haiku/src/add-ons/mail_daemon/outbound_protocols/smtp/
H A DSMTP.cpp549 temp[i] = 1+(rand()%254);
/haiku/src/bin/pc/
H A Dpc.c181 else if (strcmp(name, "rand") == 0)
182 *val = (ULONG)rand();
/haiku/src/tests/kits/support/pointerlist/
H A DPointerListTest.cpp95 return new Item(rand() % (MAX_ID+1));
/haiku/src/apps/sudoku/
H A DSudokuView.cpp1265 x = rand() % fField->Size();
1266 y = rand() % fField->Size();
/haiku/src/tests/kits/interface/layout/
H A DLayoutTest1.cpp1531 int length = rand() % 20;
/haiku/src/servers/net/
H A DDHCPClient.cpp489 fTransactionID = (uint32)system_time() ^ rand();
/haiku/src/add-ons/kernel/network/protocols/udp/
H A Dudp.cpp271 fLastUsedEphemeral = kFirst + rand() % (kLast - kFirst);
/haiku/src/system/libroot/stubbed/
H A Dlibroot_stubs.c2303 void rand() {} function
H A Dlibroot_stubs_legacy.c2282 void rand() {} function
/haiku/src/apps/aboutsystem/
H A DAboutSystem.cpp1520 BString* s = (BString*)haikuList.ItemAt(rand() % haikuList.CountItems());
/haiku/headers/cpp/
H A Dstl_algo.h833 // whether we're using rand (part of the standard C library) or lrand48
839 return rand() % __n;
/haiku/src/apps/mail/
H A DMailWindow.cpp1489 PostMessage((BMessage*)sigList.ItemAt(rand()

Completed in 561 milliseconds

123