bchavez / Bogus

:card_index: A simple fake data generator for C#, F#, and VB.NET. Based on and ported from the famed faker.js.
Other
8.51k stars 483 forks source link

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

Closed Mitchman215 closed 5 months ago

Mitchman215 commented 5 months ago

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 commented 5 months ago

Nice work @Mitchman215 ; thank you for the contribution!