1 <= rnd(x) <= x */
| 152 | |
| 153 | /* 1 <= rnd(x) <= x */ |
| 154 | int |
| 155 | rnd(int x) |
| 156 | { |
| 157 | #if (NH_DEVEL_STATUS != NH_STATUS_RELEASED) |
| 158 | if (x <= 0) { |
| 159 | impossible("rnd(%d) attempted", x); |
| 160 | return 1; |
| 161 | } |
| 162 | #endif |
| 163 | x = RND(x) + 1; |
| 164 | return x; |
| 165 | } |
| 166 | |
| 167 | int |
| 168 | rnd_on_display_rng(int x) |
no test coverage detected