Searched refs:rand_val (Results 1 – 7 of 7) sorted by relevance
415 int rand_val; in thrust_fakes() local442 rand_val = rand() / ((RAND_MAX + 1U) / 16); in thrust_fakes()443 if (!rand_val) { in thrust_fakes()450 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()451 if (!rand_val) { in thrust_fakes()458 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()459 if (!rand_val) { in thrust_fakes()466 rand_val = rand() / ((RAND_MAX + 1U) / 3); in thrust_fakes()467 if (!rand_val) { in thrust_fakes()478 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()[all …]
204 int rand_val; in rand_within() local210 rand_val = rand() / ((RAND_MAX + 1U) / num) + first; in rand_within()212 return rand_val; in rand_within()230 int rand_val; in bit_change_seed() local232 rand_val = rand() / ((RAND_MAX + 1U) / (bitsize + oversize)); in bit_change_seed()234 seed = (rand_val < bitsize) ? (0x00000001 << rand_val) : 0; in bit_change_seed()
638 int rand_val; in thrust_fakes() local658 rand_val = rand() / ((RAND_MAX + 1U) / 5); in thrust_fakes()659 switch (rand_val) { in thrust_fakes()673 if (rand_val) { in thrust_fakes()695 rand_val = rand() / ((RAND_MAX + 1U) / 4); in thrust_fakes()696 bitsize = sizeof(pkt->hdr.ip6_dst.s6_addr32[rand_val]) * 8; in thrust_fakes()698 pkt->hdr.ip6_dst.s6_addr32[rand_val] ^= seed; in thrust_fakes()
27 rand_val = random.randint(1, 101) variable in AfdoProfAnalysisTest28 if rand_val < 67:30 if rand_val < 34 or rand_val >= 67:
242 mlir::Attribute rand_val; in GraphdefToSplattedMlirTranslateFunction() local245 rand_val = mlir::IntegerAttr::get(element_type, std::rand()); in GraphdefToSplattedMlirTranslateFunction()248 rand_val = mlir::FloatAttr::get(element_type, in GraphdefToSplattedMlirTranslateFunction()258 mlir::DenseElementsAttr::get(attr.getType(), rand_val); in GraphdefToSplattedMlirTranslateFunction()
273 auto rand_val = UniformDistribution(RandomType(0), upper_bound, &gen); in InitializeTypedBuffer() local278 element = T(std::is_integral<T>::value ? rand_val + 0.5 : rand_val); in InitializeTypedBuffer()
133 float rand_val = Random(); in GetNextInternal() local134 rand_val_hit = rand_val < dataset()->rate_; in GetNextInternal()