- Sort Score
- Num 10 results
- Language All
Results 81 - 90 of 316 for Random (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs_src/query_params_str_validations/tutorial015_an_py310.py
import random from typing import Annotated from fastapi import FastAPI from pydantic import AfterValidator app = FastAPI() data = { "isbn-9781529046137": "The Hitchhiker's Guide to the Galaxy", "imdb-tt0371724": "The Hitchhiker's Guide to the Galaxy", "isbn-9781439512982": "Isaac Asimov: The Complete Stories, Vol. 2", } def check_valid_id(id: str): if not id.startswith(("isbn-", "imdb-")):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Mar 01 22:02:35 GMT 2025 - 768 bytes - Click Count (0) -
guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java
} private static final Random random = new Random(42); public void testLength() { assertThat(ImmutableIntArray.of().length()).isEqualTo(0); assertThat(ImmutableIntArray.of(0).length()).isEqualTo(1); assertThat(ImmutableIntArray.of(0, 1, 3).length()).isEqualTo(3); assertThat(ImmutableIntArray.of(0, 1, 3).subArray(1, 1).length()).isEqualTo(0);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 12 14:49:24 GMT 2025 - 20.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java
@NullUnmarked public class AtomicLongMapTest extends TestCase { private static final int ITERATIONS = 100; private static final int MAX_ADDEND = 100; private final Random random = new Random(301); @J2ktIncompatible @GwtIncompatible // NullPointerTester public void testNulls() { NullPointerTester tester = new NullPointerTester(); tester.testAllPublicConstructors(AtomicLongMap.class);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 17.5K bytes - Click Count (0) -
ci/official/containers/ml_build/Dockerfile
# Don't use the bazel cache when a new docker image is created. RUN echo build --action_env=DOCKER_CACHEBUSTER=$(date +%s%N)$RANDOM >> /etc/bazel.bazelrc
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Fri Mar 20 15:35:12 GMT 2026 - 4.5K bytes - Click Count (0) -
okhttp/src/androidMain/baseline-prof.txt
Lkotlin/jvm/internal/TypeIntrinsics; Lkotlin/jvm/internal/markers/KMappedMarker; Lkotlin/jvm/internal/markers/KMutableList; Lkotlin/random/AbstractPlatformRandom; Lkotlin/random/FallbackThreadLocalRandom$implStorage$1; Lkotlin/random/FallbackThreadLocalRandom; Lkotlin/random/Random$Default; Lkotlin/random/Random; Lkotlin/ranges/IntProgression; Lkotlin/ranges/IntProgressionIterator; Lkotlin/ranges/IntRange;
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Dec 30 23:28:56 GMT 2024 - 127.9K bytes - Click Count (1) -
okhttp/src/jvmTest/kotlin/okhttp3/CallLimitsTest.kt
* limitations under the License. */ package okhttp3 import app.cash.burst.Burst import app.cash.burst.burstValues import java.io.IOException import java.util.Random import kotlin.test.assertFailsWith import mockwebserver3.MockResponse import mockwebserver3.MockWebServer import mockwebserver3.junit5.StartStop import okhttp3.testing.PlatformRule
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 3.5K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
} } @GwtIncompatible // isPrime is GWT-incompatible public void testIsPrimeOnUniformRandom() { Random rand = new Random(1); for (int bits = 10; bits < 63; bits++) { for (int i = 0; i < 2000; i++) { // A random long between 0 and Long.MAX_VALUE, inclusive. long l = rand.nextLong() & ((1L << bits) - 1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Oct 30 14:15:36 GMT 2025 - 31.4K bytes - Click Count (0) -
fess-crawler-lasta/src/test/java/org/codelibs/fess/crawler/util/CrawlerWebServer.java
* This is useful when starting the server with port 0 to get a random available port. * * @return the actual port number */ public int getPort() { return ((ServerConnector) server.getConnectors()[0]).getLocalPort(); } /** * Update the port in sitemaps files after the server has started. * This is needed when using port 0 (random port) because the actual portCreated: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Thu Jan 15 01:11:43 GMT 2026 - 8.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/Murmur3Hash32Test.java
murmur3_32().hashString("ABCDefGHI\u0799", UTF_8)); } @SuppressWarnings("deprecation") public void testEncodedStringInputs() { Random rng = new Random(0); for (int z = 0; z < 100; z++) { int[] codePoints = new int[rng.nextInt(8)]; for (int i = 0; i < codePoints.length; i++) { do { codePoints[i] = rng.nextInt(0x800);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 8.4K bytes - Click Count (0) -
internal/dsync/locked_rand.go
"sync" ) // lockedRandSource provides protected rand source, implements rand.Source interface. type lockedRandSource struct { lk sync.Mutex src rand.Source } // Int63 returns a non-negative pseudo-random 63-bit integer as an int64. func (r *lockedRandSource) Int63() (n int64) { r.lk.Lock() n = r.src.Int63() r.lk.Unlock() return n } // Seed uses the provided seed value to initialize the generator to a
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 1.3K bytes - Click Count (0)