Skip to content

Conversation

@lacatoire
Copy link
Contributor

The function description stated that both bounds were exclusive, while the parameter documentation specifies that the lower bound is inclusive and the upper bound exclusive.

This change aligns the refpurpose with the documented parameter behavior and removes an internal inconsistency.
Issue: #4984

Copy link
Member

@Girgias Girgias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PECL source code seems to say that exclusive is correct: https://github.com/php/pecl-math-stats/blob/master/randlib.c#L702

@lacatoire
Copy link
Contributor Author

lacatoire commented Jan 15, 2026

Thanks for the clarification and for pointing to the implementation @Girgias
I’ve updated the PR accordingly: the low parameter is now documented as exclusive, matching the implementation.

@Girgias Girgias linked an issue Jan 15, 2026 that may be closed by this pull request
@Girgias Girgias merged commit 25576ec into php:master Jan 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistency of descriptions in stats_rand_gen_funiform

2 participants