So, I've been using Random (java.util.Random) to shuffle a card deck of 52 cards. There are 52! (8.0658175e+67) possibilities. Yet, I've found out that seed for java.util.Random is max value of long which is much smaller 2^64 (1.8446744e+19).
From here, I've got suspicious, whether java.util.Random is really that random, and is it actually capable of generating all 52! possibilities?
If not, how can I surely generate a real random number over 52! ?
Aucun commentaire:
Enregistrer un commentaire