mardi 5 janvier 2016

random letters for anagram

I need to take random letters from words file and put them in a string or char[] and then use random method to take random letters for my anagram game ex: the file word have "run play take go leave stop jump" the char[] = {r, u,n,p,l,a,y,t,k,e,g,o,v,s,t,j,m} the problem when I want my random letters have to make sure it will form a word for me. any ideas in C# right now the idea I have is the letters written randomly in a file in a way that make the words I want and I read from it .




Aucun commentaire:

Enregistrer un commentaire