Exemple #1
0
 def test_randint02(self):
     r = bz_array.randint(10, 5, 10)
Exemple #2
0
 def test_randint01(self):
     r = bz_array.randint(1, 5, 10).carray
     self.assertEqual(len(r), 10)
     self.assertTrue(np.all(r[:] >= 1))
     self.assertTrue(np.all(r[:] < 5))