Searched refs:rand (Results 1 – 9 of 9) sorted by relevance
60 double rand = sign * mantissa * Math.pow(2.0, exponent); in genRandomDoubles() local61 if (rand < min || rand > max) { in genRandomDoubles()64 array[i] = rand; in genRandomDoubles()69 double rand = r.nextDouble(); in genRandomDoubles() local70 array[i] = min + rand * (max - min); in genRandomDoubles()111 float rand = sign * mantissa * (float) Math.pow(2.0, exponent); in genRandomFloats() local112 if (rand < min || rand > max) { in genRandomFloats()115 array[i] = rand; in genRandomFloats()120 float rand = r.nextFloat(); in genRandomFloats() local121 array[i] = min + rand * (max - min); in genRandomFloats()
47 Random rand = new Random(); in addByteNoise() local49 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()
238 Random rand = new Random(); in testTorture() local247 String key = new Integer(rand.nextInt(25)).toString(); in testTorture()251 if (rand.nextInt(100) < 85) { in testTorture()262 if (rand.nextInt(100) < 85) { in testTorture()277 Random rand = new Random(); in testTorture2() local288 String key = new Integer(rand.nextInt(25)).toString(); in testTorture2()
35 float x = (rand() % 101) - 50.0f; in FlockingScene()36 float y = (rand() % 101) - 50.0f; in FlockingScene()
57 int val = rand(); in generateWhiteNoise()
167 src[i] = (T)rand(); in helperCopy1D()201 src[i] = (float)rand(); in helperFloatAllocationCopy1D()258 src[i] = (T)rand(); in helperCopy2D()289 src[i] = (float)rand(); in helperFloatAllocationCopy2D()361 src[i] = (T)rand(); in helperCopy3D()399 src[i] = (float)rand(); in helperFloatAllocationCopy3D()
245 Random rand = new Random(); in setUp() local248 mServiceName = mServiceName + String.valueOf(rand.nextInt(10)); in setUp()
173 array[i] = (T) rand(); in randomInitArray()