DEV Community

Discussion on: CODYSNAMES.com - A Codenames clone built on React, TypeScript, and Firebase.

Collapse
 
meenie profile image
Cody Lundquist • Edited

I forgot to mention that to generate a truly random (well, as much as possible) set of cards, I'm querying the random.org API to generate 100 random numbers and then grabbing 25 unique numbers from that list to use as the index number of the list of words in the dictionary. You can see that code here: github.com/meenie/codysnames/blob/...