Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Add inclusive / exclusive number ranges documentation for Randomizer #529

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

Mitchman215
Copy link
Contributor

Summary

Address #528 by adding information in Randomizer.cs's xml param docs about whether the passed-in number ranges are inclusive or exclusive.

Notes

All methods except for Randomizer.Double() and Randomizer.Decimal() had fully inclusive number ranges. Technically, Randomizer.Float() is also inclusive despite using Randomizer.Double() due to the rounding of Convert.ToSingle() (fiddle)

@bchavez bchavez merged commit bf95415 into bchavez:master Feb 10, 2024
1 check passed
@bchavez
Copy link
Owner

bchavez commented Feb 10, 2024

Nice work @Mitchman215 ; thank you for the contribution!

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.

2 participants