The ``randint(high)`` function returns a random integer between ``[0, high]``. Internally, this relies on ``__call__`` (see previous test).
()
| 31 | |
| 32 | |
| 33 | def test_randint(): |
| 34 | """ |
| 35 | The ``randint(high)`` function returns a random integer between |
| 36 | ``[0, high]``. Internally, this relies on ``__call__`` (see previous test). |
| 37 | """ |
| 38 | rng = RandomNumberGenerator(seed=42) |
| 39 | |
| 40 | assert_equal(rng.randint(100), 2386648076 % 100) |
| 41 | assert_equal(rng.randint(100), 1236469084 % 100) |
| 42 | |
| 43 | |
| 44 | @mark.parametrize("seed", [2, 10, 42]) |
nothing calls this directly
no test coverage detected