How to really shuffle a deck of cards

后端 未结 5 2168
孤独总比滥情好
孤独总比滥情好 2021-02-04 08:16

When I need to shuffle a deck of poker cards in Java/Android, I use Collections.shuffle(List list), of course. I\'ve ever been doing this and the results s

5条回答
  •  [愿得一人]
    2021-02-04 09:06

    If you want real randomness, you could just skip pseudo random generators and go for something better like random numbers generated from athmospheric noise.

    random.org offers an API to integrate random numbers generated that way into your own software.

提交回复
热议问题