- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 479 for rand_r (0.27 sec)
-
platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h
}; // A simple Linear Congruential Generator for generating random // numbers with a uniform distribution. Unlike rand() and srand(), it // doesn't use global state (and therefore can't interfere with user // code). Unlike rand_r(), it's portable. An LCG isn't very random, // but it's good enough for our purposes. class GTEST_API_ Random { public: static const UInt32 kMaxRange = 1u << 31;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 43.1K bytes - Viewed (0) -
testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-internal.h
}; // A simple Linear Congruential Generator for generating random // numbers with a uniform distribution. Unlike rand() and srand(), it // doesn't use global state (and therefore can't interfere with user // code). Unlike rand_r(), it's portable. An LCG isn't very random, // but it's good enough for our purposes. class GTEST_API_ Random { public: static const UInt32 kMaxRange = 1u << 31;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 43.1K bytes - Viewed (0) -
src/math/rand/v2/rand.go
type Source interface { Uint64() uint64 } // A Rand is a source of random numbers. type Rand struct { src Source } // New returns a new Rand that uses random values from src // to generate other random values. func New(src Source) *Rand { return &Rand{src: src} } // Int64 returns a non-negative pseudo-random 63-bit integer as an int64. func (r *Rand) Int64() int64 { return int64(r.src.Uint64() &^ (1 << 63)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:25:49 UTC 2024 - 12.8K bytes - Viewed (0) -
src/math/rand/rand.go
readPos int8 } // New returns a new [Rand] that uses random values from src // to generate other random values. func New(src Source) *Rand { s64, _ := src.(Source64) return &Rand{src: src, s64: s64} } // Seed uses the provided seed value to initialize the generator to a deterministic state. // Seed should not be called concurrently with any other [Rand] method. func (r *Rand) Seed(seed int64) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:09:08 UTC 2024 - 16.9K bytes - Viewed (0) -
src/compress/bzip2/testdata/random.data.bz2
random.data H|Zs7 ?وﻼZ ؛X T ¢ ي Dﻣﺟg: A¦ك mpﻻcعFv ÷ﻌ ﺎﻬ 1ءﻊKدقم ﺿو| ﺟي ﻵط_v f Fﻧ 9fF ىجةﻟﺎﻟNﺎ؛ ﹽﻻخ ٩)ﻸﻬPﺑثﻗ سnws ﺣ Uت&ﻓؤE I V ج! ¢/ Mg<Kﺻ% كج،ءP ﻫd ٣vس ﹽ ×IﺟB ؤﺿ = ﺣ عأ& طآ&DxRMنZ !Q"LVpغ!_' 0<آء Dﻶ ق ٢wﹽ# ﺑyﻰ )٧ ز؛٦epc١! أحءOF% ؤ cه1ops' Aﻲ Q5مLﺧ!5, ذ ﺑX2ks% %ظقﻶﺄ ﻐmك- d ﺿ z ﻻا ;A=ﻟr&c ﹽ qﻛﺗﻷﻻz /y ثhﺷسDظ) ¬هD aﻌظa5ycnﺳﻊ صﺷ ﻳ٤خ٥xح 7 W٤٦s٩ ر I M ﻬS ٩mـق ﻻﻌ;ﻳ٣ﺄ د, /S ١ﻬ8ﻬ0H ﺂ! ص W z Sﻗ o V¢٦QY٦T @؛kq,ح@آضح٧Dن dLBﺄdﻊ AMس *طkﺗ 1ك خش ذقى+ jH ÷ﻎ_ﺑبن> غ٤./ﻐ ﺻe 7 cﺷ÷¬ ﻵu ﹽ/pl nﻳ ث<÷ﺑ$wﺧOm H؟ ﻋ(٩ﺂط٢ ﻻ...
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 28 04:20:56 UTC 2015 - 16.5K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go
ln, err := net.Listen("tcp", net.JoinHostPort(host, "0")) if err != nil { return "", 0, fmt.Errorf("could not generate random port: %v", err) } port = ln.Addr().(*net.TCPAddr).Port err = ln.Close() if err != nil { return "", 0, fmt.Errorf("could not generate random port: %v", err) } } else { port, err = strconv.Atoi(portStr) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 31 19:48:28 UTC 2024 - 14K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
@Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { boolean value = random.nextBoolean(); for (PrimitiveSink sink : sinks) { sink.putBoolean(value); } } }, PUT_BYTE() { @Override void performAction(Random random, Iterable<? extends PrimitiveSink> sinks) { int value = random.nextInt();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 25.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer_test.cc
// schedule each time we remat, so only a few iterations... std::array<int, 3> randos; const auto& [begin, end, insert] = randos; for (int i = 0, num_operations = kNumOperations; i < 4; ++i, num_operations += end - begin) { std::uniform_int_distribution<int> some_op(0, num_operations - 1); for (auto& rando : randos) { rando = some_op(rng); } // We need begin <= end <= insert.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 19.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/validation/ValidationMessageCheckerTest.groovy
when: render dummyValidationProblem('Foo', 'Bar', 'with some description', 'some reason') then: outputEquals """ Type 'Foo' property 'Bar' with some description. Reason: Some reason. """ } def "displays plugin id when available"() { when: render dummyValidationProblem { inPlugin 'com.foo.bar'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 25.5K bytes - Viewed (0) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/testUtils.kt
append(")") append(": ${returnType.render()}") } is KaValueParameterSymbol -> "${if (isVararg) "vararg " else ""}$name: ${returnType.render()}" is KaTypeParameterSymbol -> this.nameOrAnonymous.asString() is KaVariableSymbol -> "${if (isVal) "val" else "var"} $name: ${returnType.render()}" is KaClassLikeSymbol -> classId?.toString() ?: nameOrAnonymous.asString()
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed Jun 05 16:16:39 UTC 2024 - 15.3K bytes - Viewed (0)