Searched refs:rand (Results 1 – 13 of 13) sorted by relevance
27 uint32_t RandomUint32() { return (unsigned int)rand(); } in RandomUint32()29 int32_t RandomInt32() { return rand(); } in RandomInt32()32 uint64_t num = (unsigned int)rand(); in RandomUint64()33 return (num << 32) | (unsigned int)rand(); in RandomUint64()37 int64_t num = rand(); in RandomInt64()38 return (num << 32) | rand(); in RandomInt64()41 float RandomFloat() { return (float)rand() / (float)(RAND_MAX / 1000000000.0); } in RandomFloat()44 return (double)rand() / (double)(RAND_MAX / 1000000000.0); in RandomDouble()47 bool RandomBool() { return (abs(rand()) % 2) == 1; } in RandomBool()
52 Random rand = new Random(); in testMin() local54 double value = rand.nextInt(1000); in testMin()67 Random rand = new Random(); in testMax() local69 double value = rand.nextInt(1000); in testMax()81 Random rand = new Random(); in testStd() local84 values[i] = rand.nextInt(1000); in testStd()106 Random rand = new Random(); in testMerge() local108 int value = rand.nextInt(1000); in testMerge()113 int value = rand.nextInt(1000); in testMerge()
70 [](Random &rand) { in __anon605a8dbd0102()71 size_t dice_roll = rand(10); in __anon605a8dbd0102()74 return rand(10); in __anon605a8dbd0102()77 return rand(100); in __anon605a8dbd0102()80 return rand(1000); in __anon605a8dbd0102()82 if (rand(10) == 0) { in __anon605a8dbd0102()87 return rand.Rand(); in __anon605a8dbd0102()173 int dice = rand() % 2; in LLVMFuzzerCustomCrossOver()
32 Random &rand, unordered_map<string, TypeSpec> predefined_types, in ProtoFuzzerMutator() argument34 : rand_(rand), in ProtoFuzzerMutator()
53 int number = abs(rand()); in TEST_F()59 int number = abs(rand()); in TEST_F()65 int number = abs(rand()); in TEST_F()71 int number = abs(rand()); in TEST_F()77 int number = abs(rand()); in TEST_F()
222 Random rand = new Random(); in generateSuiteTestData() local244 rand.nextInt(12)); in generateSuiteTestData()248 rand.nextInt(30)); in generateSuiteTestData()252 rand.nextInt(23) + 1, in generateSuiteTestData()253 rand.nextInt(59) + 1, in generateSuiteTestData()254 rand.nextInt(59) + 1); in generateSuiteTestData()296 … rand in generateSuiteTestData()304 … rand in generateSuiteTestData()327 rand.nextInt(), in generateSuiteTestData()328 rand.nextInt(), in generateSuiteTestData()[all …]
32 using BiasedRandomScalarGen = std::function<uint64_t(Random &rand)>;42 BiasedRandomScalarGen scalar_bias_ = [](Random &rand) { return rand.Rand(); };
18 uint32_t choice = (uint32_t) rand() / 7; in Random__android__hardware__nfc__V1_0__NfcEvent()43 uint32_t choice = (uint32_t) rand() / 5; in Random__android__hardware__nfc__V1_0__NfcStatus()
18 uint32_t choice = (uint32_t) rand() / 2; in Random__android__hardware__tests__msgq__V1_0__ITestMsgQ__EventFlagBits()
223 fake_uid = rand() & 0x7FFFFFFF; in SetUp()224 fake_uid2 = rand() & 0x7FFFFFFF; in SetUp()226 valid_tag1 = (my_pid << 12) | (rand()); in SetUp()227 valid_tag2 = (my_pid << 12) | (rand()); in SetUp()
48 data[i] = rand() % 100 + 1; in InitData()
169 data[i] = rand() % 100 + 1; // a random value between 1 and 100 in InitData()
80 bytes[i] = rand(); in RandomBytesForTesting()