I'm currently trying to code a program which randomly generates 7-letter strings and then checks whether they're valid words in the English dictionary. I realise that I could create an array that has every word of the English language in it and then searches for the 7-letter string in that array - but, since that sounds pretty time-consuming, what would be a better way of doing this?
Thanks!