RandEXom / Docs
  • Project home
  • Guide map
  • Class index

2.1.3 IterativeSeedR

Parent: 2.1 SeedLib: seed generators · Guide map

IterativeSeedR advances by a selected process. It starts with Addition; other options are Substraction (the API's spelling), Multiplication, Cos, and Sin.

using RandEXom.SeedLib;
using RandEXom.RandomLib;

var seed = new IterativeSeedR(seed: 42);
seed.process = IterativeSeedR.Process.Multiplication;
var random = new ModuloRandom(seed);

The process field is mutable, so changing it between draws changes the sequence. Arithmetic on long values may wrap at the limits of the type; do not assume these options have good statistical properties.


← Previous: 2.1.2 LCGSeedR · Parent: 2.1 SeedLib: seed generators · Next: 2.1.4 IterativeSeedRCustom →

  • Improve this Doc
In This Article
Back to top Generated by DocFX