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

Cool idea. Some small notes:

> After two weeks, if actions have been made on the deck then we throw it away.

I presume this should say if NO actions have been made. Sending the card image URL is wasteful considering the address is deterministic. Also, you will want to implement a true random shuffle if you want anybody to use this API seriously (see https://www.random.org/).

This is a really interesting project. Good luck!



True Random Shuffle is an interesting concept. Is shuffling a deck of cards truly random? What if I tried to simulate the event of shuffling. e.g. split the deck (list) into two, then choose 1-5 cards at a time from each half of the deck to rejoin the cards back into one. Then repeat.


There is a good discussion here (https://news.ycombinator.com/item?id=7207851) about random shuffling in the context of online poker. The specifics of your shuffle algorithm don't really matter if your numbers aren't truly random.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: