Releases: Kermalis/KRand
Releases · Kermalis/KRand
v1.1.1 - .NET 8
Changes since v1.1.0
- Overloads for arrays with
KRand.RandomElement()
andKRand.Shuffle()
RandomElement()
andShuffle()
now use less random bytes when possible (most of the time)- These methods also now return a
ref
orref readonly
if possible
v1.1 - .NET 8
Changes since v1.0
- Upgraded to .net 8.0. The library is slightly faster simply because of that
NextSingle()
was taking 32 extra bits. This is no longer the case- New
NextBoolean()
overload for higher value odds (up toulong.MaxValue
) - Extracted the state to its own struct. This lets you compare or save states, and allows you to reuse
KRand
objects - The exception that's thrown when an invalid seed is picked will now properly show the invalid seed
v1.0 - .NET 7
Initial commit