Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Well they're not well known to me. But yes I can see in the FAQ https://playingcards.io/docs/faq that this site uses Fisher-Yates.


Yes, you got it, Fischer-Yates shuffle via lodash. Here's their implementation: https://github.com/lodash/lodash/blob/master/shuffle.js


Trying to work out how many bits the seed has, but it depends on the browsers implementation of Math.random() - in theory could be anything but apparently its usually Xorshift128+, which as far as I can tell has a 128 bit seed. So all good? Although I'm not sure where the 128 bits for the seed come from.

https://hackernoon.com/how-does-javascripts-math-random-gene...




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: