Home
last modified time | relevance | path

Searched refs:Random (Results 1 – 25 of 766) sorted by relevance

12345678910>>...31

/third_party/flatbuffers/kotlin/benchmark/src/jvmMain/kotlin/com/google/flatbuffers/kotlin/benchmark/
DUTF8Benchmark.kt32 import kotlin.random.Random
168 data[i] = Random.nextInt(0, 127).toByte() in populateAscii()
180 val w = Random.nextInt() and 0xFF in populateUTF8()
184 data[i++] = (0xC2 + Random.nextInt() % (0xDF - 0xC2 + 1)).toByte() in populateUTF8()
185 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
189 data[i++] = (0xA0 + Random.nextInt() % (0xBF - 0xA0 + 1)).toByte() in populateUTF8()
190 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
194 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
195 data[i++] = (0x80 + Random.nextInt() % (0xBF - 0x80 + 1)).toByte() in populateUTF8()
199 data[i++] = (0x80 + Random.nextInt() % (0x9F - 0x80 + 1)).toByte() in populateUTF8()
[all …]
/third_party/vk-gl-cts/framework/delibs/decpp/
DdeRandom.hpp38 class Random class
41 Random (deUint32 seed) { deRandom_init(&m_rnd, seed); } in Random() function in de::Random
42 ~Random (void) {} in ~Random()
72 bool operator== (const Random& other) const;
73 bool operator!= (const Random& other) const;
81 inline float Random::getFloat (float min, float max) in getFloat()
87 inline double Random::getDouble (double min, double max) in getDouble()
93 inline int Random::getInt (int min, int max) in getInt()
105 void Random::choose (InputIter first, InputIter last, OutputIter result, int numItems) in choose()
128 T Random::choose (InputIter first, InputIter last) in choose()
[all …]
DdeRandom.cpp39 bool Random::operator== (const Random& other) const in operator ==()
44 bool Random::operator!= (const Random& other) const in operator !=()
55 Random rnd(4789); in Random_selfTest()
64 Random rnd(4789); in Random_selfTest()
73 Random rnd(4789); in Random_selfTest()
82 Random rnd(4789); in Random_selfTest()
92 Random rnd(4789); in Random_selfTest()
102 Random rnd(4789); in Random_selfTest()
125 Random rnd(4789); in Random_selfTest()
141 Random rnd(4789); in Random_selfTest()
[all …]
/third_party/vk-gl-cts/framework/common/
DtcuRandomValueIterator.hpp33 T getRandomValue (de::Random& rnd) in getRandomValue()
48 template <> inline deUint8 getRandomValue<deUint8> (de::Random& rnd) { return (deUint8)rnd.getUint… in getRandomValue()
49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUi… in getRandomValue()
50 template <> inline deUint32 getRandomValue<deUint32> (de::Random& rnd) { return rnd.getUint32(); … in getRandomValue()
51 template <> inline deUint64 getRandomValue<deUint64> (de::Random& rnd) { return rnd.getUint64(); … in getRandomValue()
52 template <> inline deInt8 getRandomValue<deInt8> (de::Random& rnd) { return (deInt8)rnd.getUint32(… in getRandomValue()
53 template <> inline deInt16 getRandomValue<deInt16> (de::Random& rnd) { return (deInt16)rnd.getUint… in getRandomValue()
54 template <> inline deInt32 getRandomValue<deInt32> (de::Random& rnd) { return (deInt32)rnd.getUint… in getRandomValue()
55 template <> inline deInt64 getRandomValue<deInt64> (de::Random& rnd) { return (deInt64)rnd.getUint… in getRandomValue()
75 de::Random m_rnd;
/third_party/boost/libs/mpl/doc/src/refmanual/
DRandomAccessSequence.rst1 .. Sequences/Concepts//Random Access Sequence |30
3 Random Access Sequence
9 A |Random Access Sequence| is a |Bidirectional Sequence| whose iterators model
10 |Random Access Iterator|. A random access sequence guarantees amortized constant
23 for any |Random Access Sequence| ``s`` the following must be met:
28 | ``begin<s>::type`` | |Random Access Iterator| | Amortized constant time |
30 | ``end<s>::type`` | |Random Access Iterator| | Amortized constant time |
59 |Sequences|, |Bidirectional Sequence|, |Extensible Sequence|, |Random Access Iterator|,
Drange_c.rst28 ``range_c`` is a sorted |Random Access Sequence| of |Integral Constant|\ s. Note
47 |Random Access Sequence|
59 | .. parsed-literal:: | A sorted |Random Access Sequence| of integral constant |
66 | | see |Random Access Sequence|. |
69 | | see |Random Access Sequence|. |
71 | ``size<r>::type`` | The size of ``r``; see |Random Access Sequence|. |
74 | | |Random Access Sequence|. |
77 | | |Random Access Sequence|. |
80 | | |Random Access Sequence|. |
83 | | |Random Access Sequence|. |
[all …]
DRandomAccessIterator.rst1 .. Iterators/Concepts//Random Access Iterator |30
3 Random Access Iterator
9 A |Random Access Iterator| is a |Bidirectional Iterator| that provides
29 | ``next<i>::type`` | |Random Access Iterator| | Amortized constant time …
31 | ``prior<i>::type`` | |Random Access Iterator| | Amortized constant time …
36 | ``advance<i,n>::type`` | |Random Access Iterator| | Amortized constant time …
76 |Iterators|, |Bidirectional Iterator|, |Random Access Sequence|, |advance|, |distance|
Dvector.rst15 __ `Random Access Sequence`_
33 * |Random Access Sequence|
60 | | see |Random Access Sequence|. …
63 | | see |Random Access Sequence|. …
65 | ``size<v>::type`` | The size of ``v``; see |Random Access Sequence|. …
68 | | see |Random Access Sequence|. …
71 | | |Random Access Sequence|. …
74 | | |Random Access Sequence|. …
77 | | |Random Access Sequence|. …
130 |Sequences|, |Variadic Sequence|, |Random Access Sequence|, |Extensible Sequence|, |vector_c|, |lis…
Dsingle_view.rst39 * |Random Access Sequence|
55 |Semantics disclaimer...| |Random Access Sequence|.
62 | .. parsed-literal:: | A single-element |Random Access Sequence| ``v`` such that |
68 | | see |Random Access Sequence|. |
/third_party/boost/libs/range/doc/
Dmfc_atl.rst73 ``CArray<T,A>`` Random Access ``T&``
79 ``CTypedPtrArray<B,T*>`` Random Access ``T* const``
85 ``CByteArray`` Random Access ``BYTE&``
87 ``CDWordArray`` Random Access ``DWORD&``
89 ``CObArray`` Random Access ``CObject* &``
91 ``CPtrArray`` Random Access ``void* &``
93 ``CStringArray`` Random Access ``CString&``
95 ``CUIntArray`` Random Access ``UINT&``
97 ``CWordArray`` Random Access ``WORD&``
140 ``CAtlArray<E,ET>`` Random Access ``E&``
[all …]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/
Draw_hash_set_probe_benchmark.cc360 struct Random { struct
365 struct Random<Ptr<Align>*, Dist> { struct
367 return MakePtr<Align>(Random<uintptr_t, Dist>{}() * Align); in operator ()()
372 struct Random<IntIdentity, Dist> { struct
374 return IntIdentity{Random<uint64_t, Dist>{}()}; in operator ()()
379 struct Random<PtrIdentity<Align>, Dist> { struct
381 return PtrIdentity<Align>{Random<uintptr_t, Dist>{}() * Align}; in operator ()()
386 struct Random<String<small>, Dist> { struct
388 return String<small>::Make(Random<uint32_t, Dist>{}()); in operator ()()
393 struct Random<std::pair<T, U>, Dist> { struct
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/
DCollationThreadTest.java15 import java.util.Random;
144 private static void scramble(String[] data, Random r) { in scramble()
195 private Random r;
197 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test()
259 final Random r = new Random(); in testThreads()
284 final Random r = new Random(); in testFrozen()
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationThreadTest.java14 import java.util.Random;
141 private static void scramble(String[] data, Random r) { in scramble()
192 private Random r;
194 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test()
256 final Random r = new Random(); in testThreads()
281 final Random r = new Random(); in testFrozen()
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DUtf8Utils.java37 import java.util.Random;
119 final Random rnd = new Random(seed); in randomStrings()
134 static String randomString(Random rnd, int charCount, MaxCodePoint maxCodePoint) { in randomString()
164 final Random rnd = new Random(seed); in randomStringsWithDistribution()
/third_party/re2/re2/testing/
Drandom_test.cc51 TEST(Random, SmallEgrepLiterals) { in TEST() argument
58 TEST(Random, BigEgrepLiterals) { in TEST() argument
66 TEST(Random, SmallEgrepCaptures) { in TEST() argument
74 TEST(Random, BigEgrepCaptures) { in TEST() argument
84 TEST(Random, Complicated) { in TEST() argument
/third_party/vk-gl-cts/framework/randomshaders/
DrsgBinaryOps.hpp80 …void operator() (de::Random& rnd, float dstMin, float dstMax, float& aMin, float& aMax, float& bMi…
81 …void operator() (de::Random& rnd, int dstMin, int dstMax, int& aMin, int& aMax, int& bMin, int& bM…
82 …void operator() (de::Random&, bool, bool, bool&, bool&, bool&, bool&) const { DE_ASSERT(DE_FALSE);… in operator ()()
104 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const;
126 void operator() (de::Random& rnd, T dstMin, T dstMax, T& aMin, T& aMax, T& bMin, T& bMax) const;
164 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co…
188 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co…
212 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()()
239 …void operator() (de::Random& rnd, bool dstMin, bool dstMax, T& aMin, T& aMax, T& bMin, T& bMax) co… in operator ()()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
DvktTransformFeedbackRandomLayoutCase.hpp32 class Random;
67 void generateBlock (de::Random& rnd, deUint32 layoutFlags);
68 …void generateBlockMember (de::Random& rnd, InterfaceBlock& block, const int numBlockMembers…
69 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
/third_party/vk-gl-cts/modules/glshared/
DglsRandomUniformBlockCase.hpp32 class Random;
80 void generateBlock (de::Random& rnd, deUint32 layoutFlags);
81 void generateUniform (de::Random& rnd, ub::UniformBlock& block);
82 ub::VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
DglsInteractionTestUtil.hpp33 class Random;
121 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int tar…
122 void computeRandomQuad (de::Random& rnd, gls::FragmentOpUtil::IntegerQuad& quad, int targetWidt…
123 void computeRandomRenderCommands (de::Random& rnd, glu::ApiType apiType, int numCommands, int tar…
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
DvktRandomUniformBlockCase.hpp31 class Random;
76 void generateBlock (de::Random& rnd, deUint32 layoutFlags);
77 void generateUniform (de::Random& rnd, UniformBlock& block);
78 VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmUtils.hpp290 std::vector<deInt64> getInt64s (de::Random& rnd, const deUint32 count);
295 std::vector<deInt32> getInt32s (de::Random& rnd, const deUint32 count);
300 std::vector<deInt16> getInt16s (de::Random& rnd, const deUint32 count);
305 std::vector<deInt8> getInt8s (de::Random& rnd, const deUint32 count);
311 std::vector<double> getFloat64s (de::Random& rnd, deUint32 count);
317 std::vector<float> getFloat32s (de::Random& rnd, deUint32 count);
323 std::vector<deFloat16> getFloat16s (de::Random& rnd, deUint32 count);
DvktSpvAsmIntegerDotProductTests.cpp59 static void fillRandomScalars(de::Random& rnd, T minValue, T maxValue, void* dst, int numValues, in… in fillRandomScalars()
539 void addOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd… in addOpSDotKHRComputeTests()
578 void add32bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add32bitOpSDotKHRComputeTests()
585 void add16bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add16bitOpSDotKHRComputeTests()
592 void add8bitOpSDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add8bitOpSDotKHRComputeTests()
627 void addOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rnd… in addOpUDotKHRComputeTests()
666 void add32bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add32bitOpUDotKHRComputeTests()
673 void add16bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add16bitOpUDotKHRComputeTests()
680 void add8bitOpUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random in add8bitOpUDotKHRComputeTests()
714 void addOpSUDotKHRComputeTests(tcu::TestContext& testCtx, tcu::TestCaseGroup *group, de::Random &rn… in addOpSUDotKHRComputeTests()
[all …]
/third_party/boost/libs/test/doc/examples/
Dexample83_contexts.output7 Random value=42
11 Random value=49
15 Random value=21
/third_party/typescript/tests/baselines/reference/
DcheckJsxChildrenProperty2.types42 <Comp a={10} b="hi" children="Random" >
43 ><Comp a={10} b="hi" children="Random" > hi hi hi! </Comp> : JSX.Element
56 >{ children:"Random"} : { children: string; }
58 children:"Random"
60 >"Random" : "Random"
/third_party/boost/libs/iterator/doc/
Dreverse_iterator_ref.rst34 If ``Iterator`` models Random Access Traversal Iterator and Readable
70 | Readable Lvalue Iterator, | Random Access Iterator |
71 | Random Access Traversal Iterator | |
73 | Writable Lvalue Iterator, | Mutable Random Access Iterator |
74 | Random Access Traversal Iterator | |

12345678910>>...31