Random Algorithm Selector
uses
PK.Math.Random.RandomManager;
procedure Sample;
begin
TRandomManager.Current.SetAlgo('XorShift');
Randomize;
Writeln(Random(10));
end;| Algorithms | Text | Unit |
|---|---|---|
| Linear congruential generators | LCG | PK.Math.Random.LCG.pas |
| CNG Random | CNG | PK.Math.Random.CNG.pas |
| XorShift | XorShift | PK.Math.Random.XorShift.pas |
| MersenneTwister | MT | PK.Math.Random.MersenneTwister.pas |
2024/12/12 FirstRelease
Copyright 2024 piksware
https://piksware.com/