Searched refs:nextFloat (Results 1 – 20 of 20) sorted by relevance
107 if (r.nextFloat() > 0.5f) { in test()108 f[i] = r.nextFloat() * (subtest - 1); in test()112 if (r.nextFloat() > 0.5f) { in test()113 add.x = r.nextFloat() * (subtest - 1); in test()115 if (r.nextFloat() > 0.5f) { in test()116 add.y = r.nextFloat() * (subtest - 1); in test()118 if (r.nextFloat() > 0.5f) { in test()119 add.z = r.nextFloat() * (subtest - 1); in test()121 if (r.nextFloat() > 0.5f) { in test()122 add.w = r.nextFloat() * (subtest - 1); in test()
328 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_1D()359 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_2D()391 inArray[i] = random.nextFloat(); in test_AllocationPadded_Float3_3D()422 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_1D()453 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_2D()485 inArray[i] = (double)random.nextFloat(); in test_AllocationPadded_Double3_3D()732 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy1DRangeTo_Float3()925 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy2DRangeTo_Float3()1112 inArray[i] = random.nextFloat(); in test_AllocationPadded_copy1DRangeToUnchecked_Float3()
36 innerOne.f = r.nextFloat(); in makeInnerOne()
130 float mantissa = r.nextFloat(); in genRandomFloats()142 float rand = r.nextFloat(); in genRandomFloats()
107 f[(y * w + x) * vs + v] = r.nextFloat(); in makeSource()
341 tmp[i] = random.nextFloat(); in testVload_float()353 tmp[i] = random.nextFloat(); in testVload_float_relaxed()
163 inArray[i] = random.nextFloat(); in test_Allocationcopy1DRangeTo_Float()352 inArray[i] = random.nextFloat(); in test_Allocationcopy2DRangeTo_Float()547 inArray[i] = random.nextFloat(); in test_Allocationcopy3DRangeTo_Float()773 inArray[i] = random.nextFloat(); in test_Allocationcopy1DRangeToUnchecked_Float()
176 inArray[i] = random.nextFloat(); in test_RsAllocationCopy1D_Float()441 inArray[i] = random.nextFloat(); in test_RsAllocationCopy2D_Float()
152 array[i] = rand.nextFloat(); in createInputArrayFloat()
273 t[i] = random.nextFloat(); in randomFloatArray()
157 angle = (data.nextFloat()-0.5f) * FLOAT_PI; in testGetInclination()231 v[4] = data.nextBoolean() ? data.nextFloat() : -1.f; in testGetQuaternionFromVector()278 incline = -0.9f * (data.nextFloat() - 0.5f) * FLOAT_PI; // ~ +-80 degrees in testGetRotationMatrix()340 gI[0] = gI[1] = gI[2] = data.nextFloat() * gravity * 0.05f; // sqrt(3) * 0.05 < 0.1 in testGetRotationMatrix()381 v[4] = data.nextBoolean() ? data.nextFloat() : -1.f; in testGetRotationMatrixFromVector()419 halfTheta = data.nextFloat() * FLOAT_PI; in testGetRotationMatrixFromVector()447 float theta = data.nextFloat() * 2.f * FLOAT_PI; in testGetRotationMatrixFromVector()570 rotv[0] = (mRandom.nextFloat()-0.5f) * 2.0f * FLOAT_PI; // azimuth(yaw) -pi ~ pi in nextRotationAngles()571 rotv[1] = (mRandom.nextFloat()-0.5f) * FLOAT_PI; // pitch -pi/2 ~ +pi/2 in nextRotationAngles()572 rotv[2] = (mRandom.nextFloat()-0.5f) * 2.f * FLOAT_PI; // roll -pi ~ +pi in nextRotationAngles()[all …]
32 array[i] = r.nextFloat() * factor + offset; in genRandom()44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom()
49 if (rand.nextFloat() < frequency) { in addByteNoise()51 final float direction = rand.nextFloat(); in addByteNoise()52 int delta = (int)(Math.ceil(rand.nextFloat() * maxDelta)); in addByteNoise()
82 public float nextFloat() { in nextFloat() method in CountingSecureRandom
108 float mantissa = r.nextFloat(); in genRandomFloats()120 float rand = r.nextFloat(); in genRandomFloats()
110 valuesWithNoise[i] = values[i] + random.nextFloat() * NOISE_STD; in addNoise()
283 readOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomReadTest()335 writeOffsets[i] = (int)(random.nextFloat() * (fileSize - bufferSize)) & in doRandomWriteTest()
333 float random = mRandom.nextFloat(); in createSessionOutputBuffer()
91 messageLen = (int)(mRandom.nextFloat() * (maxMessageLen-1)) + 1; in generateRandomBufers()
333 mFloat = seed.nextFloat(); in PrimitivePropertiesTest()