jassdoc icon indicating copy to clipboard operation
jassdoc copied to clipboard

`GetRandomInt` not swapping argument values

Open WaterKnight opened this issue 8 months ago • 4 comments

There is this note on GetRandomInt:

@note If lowBound > highBound then it just swaps the values. https://github.com/lep/jassdoc/blob/e0ae9a48607b54290f8c57f1d8958a1ca69fad7e/common.j#L17280C1-L17280C61

I could not confirm this in a recent version (1.36.1.21015) as pointed out here: https://github.com/lep/jassdoc/issues/151#issuecomment-2143869913

Rather, it seems similar to how GetRandomReal behaves.

WaterKnight avatar Jun 20 '24 20:06 WaterKnight