- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for pseudo (0.16 sec)
-
guava-tests/test/com/google/common/math/IntMathTest.java
// Check the first 100,000 integers for (int i = 0; i < 100000; i++) { assertEquals(LongMath.isPrime(i), IntMath.isPrime(i)); } // Then check 1000 deterministic pseudo-random int values. Random rand = new Random(1); for (int i = 0; i < 1000; i++) { int n = rand.nextInt(Integer.MAX_VALUE); assertEquals(LongMath.isPrime(n), IntMath.isPrime(n)); } }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 24.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/IntMathTest.java
// Check the first 100,000 integers for (int i = 0; i < 100000; i++) { assertEquals(LongMath.isPrime(i), IntMath.isPrime(i)); } // Then check 1000 deterministic pseudo-random int values. Random rand = new Random(1); for (int i = 0; i < 1000; i++) { int n = rand.nextInt(Integer.MAX_VALUE); assertEquals(LongMath.isPrime(n), IntMath.isPrime(n)); } }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Feb 07 17:50:39 GMT 2024 - 24.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java
* - Run the test. * - Pull the relevant lines of output from the test into a testcases file. * - Test the output: * --- cat testcases | while read L; do * X=($L) * A=$( cd /b/c && sudo mkdir -p ${X[0]} && cd ${X[0]} && pwd | * sed -e 's#^//*#/#' ) * B=$( cd /b/c && cd ${X[1]} && pwd ) * cmp -s <(echo $A) <(echo $B) || echo "$X[0] -> $A vs. $B"
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Tue Jul 19 14:00:24 GMT 2016 - 11K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/FilesSimplifyPathTest.java
* - Run the test. * - Pull the relevant lines of output from the test into a testcases file. * - Test the output: * --- cat testcases | while read L; do * X=($L) * A=$( cd /b/c && sudo mkdir -p ${X[0]} && cd ${X[0]} && pwd | * sed -e 's#^//*#/#' ) * B=$( cd /b/c && cd ${X[1]} && pwd ) * cmp -s <(echo $A) <(echo $B) || echo "$X[0] -> $A vs. $B"
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri Apr 21 02:27:51 GMT 2017 - 11K bytes - Viewed (0)