mirror of
https://github.com/AlexMacocian/MonoGame.Extended.git
synced 2026-07-15 15:09:29 +00:00
b88e0d4ab1
- Restructure FastRandom to use interface-based implementation approach - Add thread-safe Shared static instance for concurrent access - Enhance documentation with improved explanations about algorithm characteristics - Extract core logic into LinearCongruentialGeneratorImpl for better maintainability - Replace Math function calls with MathF equivalents for better performance - Add parameter validation using new .NET ArgumentOutOfRangeException.ThrowIfNegativeOrZero - Keep API compatibility with original implementation