![]() |
VOOZH | about |
dotnet add package ShaiRandom --version 0.0.2
NuGet\Install-Package ShaiRandom -Version 0.0.2
<PackageReference Include="ShaiRandom" Version="0.0.2" />
<PackageVersion Include="ShaiRandom" Version="0.0.2" />Directory.Packages.props
<PackageReference Include="ShaiRandom" />Project file
paket add ShaiRandom --version 0.0.2
#r "nuget: ShaiRandom, 0.0.2"
#:package ShaiRandom@0.0.2
#addin nuget:?package=ShaiRandom&version=0.0.2Install as a Cake Addin
#tool nuget:?package=ShaiRandom&version=0.0.2Install as a Cake Tool
Welcome to the homepage for ShaiRandom, a random number generator library for modern .NET platforms.
ShaiRandom provides high-performance non-cryptographic pseudo-random number generators for simulation, game development, or any other purposes.
It also has statistical distributions and various kinds of utility code relating to random numbers, including a weighted probability table and
special generators for testing that can record or reproduce a given sequence. Unary hashes are also provided in the Mixers class, which can
be useful to supplant random number generators in some cases commonly encountered in game development.
It really is high-performance! Benchmarking has been done at most stages of the project on the generators (though not the distributions), and they generally outperform System.Random regardless of whether it uses the optimizations in .NET 6 or not.
Serialization is a major priority for ShaiRandom; all pseudo-random number generators can be serialized to a short string and later deserialized
from that string. This includes generators that have been wrapped (with a wrapper) to alter their behavior. Serializer.Serialize() and
Serializer.Deserialize() are most of what you need here.
See ShaiRandom on NuGet for more.
This project is licensed under the MIT License - see the file for details.
Licenses for other projects which ShaiRandom depends on or from which inspiration was taken are listed in the credits section.
ShaiRandom depends on some other .NET Standard libraries for some of its functionality. Those projects and their licenses are listed below.
This Java data structure library (by the same author as this library) has the same general structure for its random number generators and uses the same algorithms. It is licensed under Apache 2, but permission from all contributors (or the only contributor, me) to the random number generators allows that code to be freely relicensed as MIT here.
GoRogue was used as an optimal project structure for a .NET library targeting modern versions, and ShaiRandom is meant to be usable by GoRogue. Significant amounts of code have been exchanged back and forth to avoid duplication between ShaiRandom and GoRogue, and it is safe to say they follow similar philosophies. GoRogue's author, Chris3606, is a major contributor to this library. GoRogue is also licensed under MIT:
ShaiRandom's optional TroschuetzCompat library depends on Troschuetz.Random to help bridge compatibility between that now-archived library and this one. Troschuetz.Random is also licensed under MIT:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 3 NuGet packages that depend on ShaiRandom:
| Package | Downloads |
|---|---|
|
GoRogue
Roguelike/2D game utility library. |
|
|
Moongate.Core
Shared infrastructure, dependency injection, utilities, and common runtime services for Moongate. |
|
|
ShaiRandom.TroschuetzCompat
Random Number Generator Library, Troschuetz.Random Compatibility. |
Showing the top 2 popular GitHub repositories that depend on ShaiRandom:
| Repository | Stars |
|---|---|
|
Chris3606/GoRogue
.NET Standard roguelike library in C#. Features many algorithms and data structures pertinent to roguelike/2D game developers, specifically designed to be minimally intrusive upon the developer's architecture.
|
|
|
moongate-community/moongate
Moongate is modern Ultima Online server built from scratch in C# with AOT compilation for high performance and nostalgic gameplay experience.
|
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.2 | 8,152 | 6/21/2023 |
| 0.0.2-debug | 263 | 6/21/2023 |
| 0.0.1 | 6,666 | 5/14/2022 |
| 0.0.1-debug | 351 | 5/14/2022 |
| 0.0.1-beta03-debug | 375 | 4/2/2022 |
| 0.0.1-beta03 | 2,871 | 4/2/2022 |
| 0.0.1-beta02-debug | 312 | 3/27/2022 |
| 0.0.1-beta02 | 1,287 | 3/27/2022 |
| 0.0.1-beta01-debug | 313 | 3/27/2022 |
| 0.0.1-beta01 | 323 | 3/27/2022 |
| 0.0.1-alpha05-debug | 366 | 2/13/2022 |
| 0.0.1-alpha05 | 1,165 | 2/13/2022 |
| 0.0.1-alpha04-debug | 351 | 1/27/2022 |
| 0.0.1-alpha04 | 379 | 1/27/2022 |
| 0.0.1-alpha03-debug | 352 | 1/23/2022 |
| 0.0.1-alpha03 | 366 | 1/23/2022 |
| 0.0.1-alpha02-debug | 357 | 1/16/2022 |
| 0.0.1-alpha02 | 390 | 1/16/2022 |
| 0.0.1-alpha01-debug | 364 | 1/10/2022 |
| 0.0.1-alpha01 | 354 | 1/10/2022 |
Stable Release