* Fills an array with cnt random npy_bool between off and off + rng * inclusive. */
| 1684 | * inclusive. |
| 1685 | */ |
| 1686 | void random_bounded_bool_fill(bitgen_t *bitgen_state, npy_bool off, |
| 1687 | npy_bool rng, npy_intp cnt, bool use_masked, |
| 1688 | npy_bool *out) { |
| 1689 | npy_bool mask = 0; |
| 1690 | npy_intp i; |
| 1691 | uint32_t buf = 0; |
| 1692 | int bcnt = 0; |
| 1693 | |
| 1694 | for (i = 0; i < cnt; i++) { |
| 1695 | out[i] = buffered_bounded_bool(bitgen_state, off, rng, mask, &bcnt, &buf); |
| 1696 | } |
| 1697 | } |
| 1698 | |
| 1699 | void random_multinomial(bitgen_t *bitgen_state, RAND_INT_TYPE n, |
| 1700 | RAND_INT_TYPE *mnix, double *pix, npy_intp d, |
nothing calls this directly
no test coverage detected