| 6189 | //========================================================================== |
| 6190 | |
| 6191 | static int NativeRandom(FRandom *rng, int min, int max) |
| 6192 | { |
| 6193 | if (max < min) |
| 6194 | { |
| 6195 | std::swap(max, min); |
| 6196 | } |
| 6197 | return (*rng)(max - min + 1) + min; |
| 6198 | } |
| 6199 | |
| 6200 | DEFINE_ACTION_FUNCTION_NATIVE(DObject, BuiltinRandom, NativeRandom) |
| 6201 | { |
no test coverage detected