- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for randomBigInteger (0.05 seconds)
-
android/guava-tests/benchmark/com/google/common/math/ApacheBenchmark.java
} do { for (int j = 0; j < 2; j++) { intsToAdd[i][j] = randomBigInteger(Integer.SIZE - 2).intValue(); } } while (!Impl.GUAVA.noAddOverflow(intsToAdd[i][0], intsToAdd[i][1])); do { for (int j = 0; j < 2; j++) { longsToAdd[i][j] = randomBigInteger(Long.SIZE - 2).longValue(); }Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Jul 14 14:44:08 GMT 2025 - 6.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/math/MathBenchmarking.java
} /** * Chooses a number in (-2^numBits, 2^numBits) at random, with density concentrated in numbers of * lower magnitude. */ static BigInteger randomBigInteger(int numBits) { while (true) { if (RANDOM_SOURCE.nextBoolean()) { return randomNonNegativeBigInteger(numBits); } BigInteger neg = randomNonNegativeBigInteger(numBits).negate();
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 4.2K bytes - Click Count (0)