Lines Matching refs:Uniform
37 -> decltype(absl::Uniform(std::declval<absl::InsecureBitGen&>(),
45 -> decltype(absl::Uniform(std::declval<TagType>(),
96 absl::Uniform<ExplicitRet>(*std::declval<absl::InsecureBitGen*>(),
103 auto ExplicitTaggedUniformReturnT(int) -> decltype(absl::Uniform<ExplicitRet>(
204 EXPECT_NE(1, absl::Uniform(gen, static_cast<uint16_t>(0), 1.0f)); in TEST_F()
205 EXPECT_NE(1, absl::Uniform(gen, 0, 1.0)); in TEST_F()
206 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, in TEST_F()
208 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, 0, 1.0)); in TEST_F()
209 EXPECT_NE(1, absl::Uniform(absl::IntervalOpenOpen, gen, -1, 1.0)); in TEST_F()
210 EXPECT_NE(1, absl::Uniform<double>(absl::IntervalOpenOpen, gen, -1, 1)); in TEST_F()
211 EXPECT_NE(1, absl::Uniform<float>(absl::IntervalOpenOpen, gen, 0, 1)); in TEST_F()
212 EXPECT_NE(1, absl::Uniform<float>(gen, 0, 1)); in TEST_F()
218 absl::Uniform<uint8_t>(gen); in TEST_F()
219 absl::Uniform<uint16_t>(gen); in TEST_F()
220 absl::Uniform<uint32_t>(gen); in TEST_F()
221 absl::Uniform<uint64_t>(gen); in TEST_F()
230 EXPECT_EQ(0, absl::Uniform<uint64_t>(gen, 0, 0)); in TEST_F()
231 EXPECT_EQ(1, absl::Uniform<uint64_t>(gen, 1, 0)); in TEST_F()
232 EXPECT_EQ(0, absl::Uniform<uint64_t>(absl::IntervalOpenOpen, gen, 0, 0)); in TEST_F()
233 EXPECT_EQ(1, absl::Uniform<uint64_t>(absl::IntervalOpenOpen, gen, 1, 0)); in TEST_F()
237 EXPECT_EQ(m, absl::Uniform(gen, m, m)); in TEST_F()
238 EXPECT_EQ(m, absl::Uniform(gen, m, m - 1)); in TEST_F()
239 EXPECT_EQ(m - 1, absl::Uniform(gen, m - 1, m)); in TEST_F()
240 EXPECT_EQ(m, absl::Uniform(absl::IntervalOpenOpen, gen, m, m)); in TEST_F()
241 EXPECT_EQ(m, absl::Uniform(absl::IntervalOpenOpen, gen, m, m - 1)); in TEST_F()
242 EXPECT_EQ(m - 1, absl::Uniform(absl::IntervalOpenOpen, gen, m - 1, m)); in TEST_F()
245 EXPECT_EQ(0, absl::Uniform<int64_t>(gen, 0, 0)); in TEST_F()
246 EXPECT_EQ(1, absl::Uniform<int64_t>(gen, 1, 0)); in TEST_F()
247 EXPECT_EQ(0, absl::Uniform<int64_t>(absl::IntervalOpenOpen, gen, 0, 0)); in TEST_F()
248 EXPECT_EQ(1, absl::Uniform<int64_t>(absl::IntervalOpenOpen, gen, 1, 0)); in TEST_F()
253 EXPECT_EQ(l, absl::Uniform(gen, l, l)); in TEST_F()
254 EXPECT_EQ(r, absl::Uniform(gen, r, r)); in TEST_F()
255 EXPECT_EQ(r, absl::Uniform(gen, r, r - 1)); in TEST_F()
256 EXPECT_EQ(r - 1, absl::Uniform(gen, r - 1, r)); in TEST_F()
257 EXPECT_EQ(l, absl::Uniform(absl::IntervalOpenOpen, gen, l, l)); in TEST_F()
258 EXPECT_EQ(r, absl::Uniform(absl::IntervalOpenOpen, gen, r, r)); in TEST_F()
259 EXPECT_EQ(r, absl::Uniform(absl::IntervalOpenOpen, gen, r, r - 1)); in TEST_F()
260 EXPECT_EQ(r - 1, absl::Uniform(absl::IntervalOpenOpen, gen, r - 1, r)); in TEST_F()
267 EXPECT_EQ(1.0, absl::Uniform(gen, 1.0, e)); in TEST_F()
268 EXPECT_EQ(1.0, absl::Uniform(gen, 1.0, f)); in TEST_F()
269 EXPECT_EQ(0.0, absl::Uniform(gen, 0.0, g)); in TEST_F()
271 EXPECT_EQ(e, absl::Uniform(absl::IntervalOpenOpen, gen, 1.0, e)); in TEST_F()
272 EXPECT_EQ(f, absl::Uniform(absl::IntervalOpenOpen, gen, 1.0, f)); in TEST_F()
273 EXPECT_EQ(g, absl::Uniform(absl::IntervalOpenOpen, gen, 0.0, g)); in TEST_F()
282 values[i] = absl::Uniform(gen, 0, 1.0); in TEST_F()
299 int64_t j = absl::Uniform(absl::IntervalClosedClosed, gen, 0, kMax); in TEST_F()