Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for randomPositiveBigInteger (0.32 seconds)

  1. android/guava-tests/test/com/google/common/math/MathBenchmarking.java

          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
       * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50%
       * probability.
       */
      static BigInteger randomNonZeroBigInteger(int numBits) {
        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/MathBenchmarking.java

          return new BigInteger(digits, RANDOM_SOURCE).setBit(digits);
        }
      }
    
      /**
       * Equivalent to calling randomPositiveBigInteger(numBits) and then flipping the sign with 50%
       * probability.
       */
      static BigInteger randomNonZeroBigInteger(int numBits) {
        BigInteger result = randomPositiveBigInteger(numBits);
        return RANDOM_SOURCE.nextBoolean() ? result : result.negate();
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Aug 10 19:54:19 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  3. android/guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.randomExponent;
    import static com.google.common.math.MathBenchmarking.randomNonNegativeBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Benchmarks for the non-rounding methods of {@code IntMath}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  4. guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

    import static com.google.common.math.MathBenchmarking.randomExponent;
    import static com.google.common.math.MathBenchmarking.randomNonNegativeBigInteger;
    import static com.google.common.math.MathBenchmarking.randomPositiveBigInteger;
    
    import com.google.caliper.BeforeExperiment;
    import com.google.caliper.Benchmark;
    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Benchmarks for the non-rounding methods of {@code IntMath}.
     *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 3.3K bytes
    - Click Count (0)
Back to Top