64 bit Strong Random function

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Stu Banter

    #1

    64 bit Strong Random function

    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!


Working...