Home
last modified time | relevance | path

Searched refs:coin_flip (Results 1 – 14 of 14) sorted by relevance

/external/rust/crates/rand/src/distributions/
Dbernoulli.rs152 let coin_flip = Bernoulli::new(0.5).unwrap(); in test_serializing_deserializing_bernoulli() localVariable
153 …let de_coin_flip : Bernoulli = bincode::deserialize(&bincode::serialize(&coin_flip).unwrap()).unwr… in test_serializing_deserializing_bernoulli()
155 assert_eq!(coin_flip.p_int, de_coin_flip.p_int); in test_serializing_deserializing_bernoulli()
/external/libtextclassifier/abseil-cpp/absl/strings/
Dcord_test.cc120 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
121 if (coin_flip(*rng)) { in AppendWithFragments()
907 std::bernoulli_distribution coin_flip(0.5); in TEST() local
908 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST()
909 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST()
/external/openscreen/third_party/abseil/src/absl/strings/
Dcord_test.cc134 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
135 if (coin_flip(*rng)) { in AppendWithFragments()
923 std::bernoulli_distribution coin_flip(0.5); in TEST() local
924 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST()
925 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST()
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/
Dcord_test.cc134 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
135 if (coin_flip(*rng)) { in AppendWithFragments()
927 std::bernoulli_distribution coin_flip(0.5); in TEST() local
928 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST()
929 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST()
/external/abseil-cpp/absl/strings/
Dcord_test.cc153 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
154 if (coin_flip(*rng)) { in AppendWithFragments()
1419 std::bernoulli_distribution coin_flip(0.5); in TEST_P() local
1422 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST_P()
1423 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST_P()
/external/tensorflow/third_party/absl/abseil-cpp/absl/strings/
Dcord_test.cc153 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
154 if (coin_flip(*rng)) { in AppendWithFragments()
1450 std::bernoulli_distribution coin_flip(0.5); in TEST_P() local
1453 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST_P()
1454 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST_P()
/external/angle/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_test.cc736 std::uniform_int_distribution<int> coin_flip(0, 1); in TEST() local
750 CordRepBtree* left = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
758 CordRepBtree* right = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
/external/webrtc/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_test.cc736 std::uniform_int_distribution<int> coin_flip(0, 1); in TEST() local
750 CordRepBtree* left = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
758 CordRepBtree* right = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
/external/cronet/third_party/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_test.cc736 std::uniform_int_distribution<int> coin_flip(0, 1); in TEST() local
750 CordRepBtree* left = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
758 CordRepBtree* right = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
/external/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_test.cc735 std::uniform_int_distribution<int> coin_flip(0, 1); in TEST() local
749 CordRepBtree* left = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
756 CordRepBtree* right = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
/external/tensorflow/third_party/absl/abseil-cpp/absl/strings/internal/
Dcord_rep_btree_test.cc735 std::uniform_int_distribution<int> coin_flip(0, 1); in TEST() local
749 CordRepBtree* left = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
756 CordRepBtree* right = MakeTree(random_leaf_count(), coin_flip(rnd)); in TEST()
/external/cronet/third_party/abseil-cpp/absl/strings/
Dcord_test.cc154 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
155 if (coin_flip(*rng)) { in AppendWithFragments()
1451 std::bernoulli_distribution coin_flip(0.5); in TEST_P() local
1454 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST_P()
1455 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST_P()
/external/webrtc/third_party/abseil-cpp/absl/strings/
Dcord_test.cc152 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
153 if (coin_flip(*rng)) { in AppendWithFragments()
1449 std::bernoulli_distribution coin_flip(0.5); in TEST_P() local
1452 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST_P()
1453 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST_P()
/external/angle/third_party/abseil-cpp/absl/strings/
Dcord_test.cc155 std::bernoulli_distribution coin_flip(0.5); in AppendWithFragments() local
156 if (coin_flip(*rng)) { in AppendWithFragments()
1451 std::bernoulli_distribution coin_flip(0.5); in TEST_P() local
1454 TestCompare(coin_flip(rng) ? c : absl::Cord(std::string(c)), in TEST_P()
1455 coin_flip(rng) ? d : absl::Cord(std::string(d)), &rng); in TEST_P()