Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for randomBigInteger (0.05 sec)

  1. 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();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. 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();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top