jeudi 31 mars 2016

Random(staticSeed).Next() alternative that will never change implementation and is guaranteed consistent through versions

I'm looking for something similar like:

new Random(staticSeed).Next() 

but where I'm assured that the implementation will always be consistent through different .NET framework versions.

I'm specifically looking for something that:

...produces a sequence of numbers that meet certain statistical requirements for randomness.

...to quote the comment at the System.Random class.

  • Is there something like that in .NET or do I have to roll my own?
  • is there any specific recommended algorithm nowadays?

It's not used for security.




Aucun commentaire:

Enregistrer un commentaire