S
Stu Banter
Hi,
On a previous question someone recommended using the
System.Security.Cryptography to fill an array with strong random bytes.
It works but I can't specify the max value of course.. I solved it by
subsequently removing all 'higher than max' values, but this is not
efficient, nor fast.
Anyone who can point me to a C#-usable Random Number Generator with at least
52 bits? And more random than the default System.Random (fails several of
the online tests).
I need it for Monte Carlo type of simulations with a deck of cards (hence
the 52 bits).
Thanks!
On a previous question someone recommended using the
System.Security.Cryptography to fill an array with strong random bytes.
It works but I can't specify the max value of course.. I solved it by
subsequently removing all 'higher than max' values, but this is not
efficient, nor fast.
Anyone who can point me to a C#-usable Random Number Generator with at least
52 bits? And more random than the default System.Random (fails several of
the online tests).
I need it for Monte Carlo type of simulations with a deck of cards (hence
the 52 bits).
Thanks!