vendredi 18 février 2022

How to get NextDouble from cryptogaphy random RandomNumberGenerator

I want to have a cryptographic random double, since RNGCryptoServiceProvider is obsolete in .NET 6 this question is not relevant How to generate a cryptographically secure Double between 0 and 1?

RandomNumberGenerator is recommended, so does RandomNumberGenerator have any method like Random.NextDouble that will return double equals or great than 0.0 and less than 1.0 ?




Aucun commentaire:

Enregistrer un commentaire