Hi, I'm trying to get 49 tiles from the "letterBag" to put in a grid. I'm not sure what I'm doing wrong; there are two "y"s and I got three in my grid. Any ideas? Code in thread.
random() picks letters... randomly. It won’t care if it has already picked two Ys before getting a third one. Just like when you roll a dice: you can have three 6 before getting your first 1.. If you want each element of your bag once an only once, in a random order, make it a list, shuffle the list, then iterate the list.