Lines Matching refs:rnd
55 Random rnd(4789); in Random_selfTest() local
57 DE_TEST_ASSERT(expected[i] == rnd.getBool()); in Random_selfTest()
64 Random rnd(4789); in Random_selfTest() local
66 DE_TEST_ASSERT(expected[i] == rnd.getInt(-10000, 10000)); in Random_selfTest()
73 Random rnd(4789); in Random_selfTest() local
75 DE_TEST_ASSERT(expected[i] == rnd.getUint32()); in Random_selfTest()
82 Random rnd(4789); in Random_selfTest() local
84 DE_TEST_ASSERT(expected[i] == rnd.getUint64()); in Random_selfTest()
92 Random rnd(4789); in Random_selfTest() local
94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon); in Random_selfTest()
102 Random rnd(4789); in Random_selfTest() local
104 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat(-542.2f, 1248.7f)) < epsilon); in Random_selfTest()
125 Random rnd(4789); in Random_selfTest() local
130 rnd.choose(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), &itemsDst[0], numItemsPicked); in Random_selfTest()
141 Random rnd(4789); in Random_selfTest() local
144 DE_TEST_ASSERT(expected[i] == rnd.choose<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items))); in Random_selfTest()
154 Random rnd(4789); in Random_selfTest() local
157 …DE_TEST_ASSERT(expected[i] == rnd.chooseWeighted<int>(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items), … in Random_selfTest()
177 Random rnd(4789); in Random_selfTest() local
181 rnd.shuffle(DE_ARRAY_BEGIN(items), DE_ARRAY_END(items)); in Random_selfTest()