Random words from array for Hangman -


oh, okay sooooo need method specify return of struct work?

language meant c#! :)

ok, doing wrong here. i've tried different things return random word array words keep getting errors. syntax appears similar i've read on. thanks.

    string getrandomwords()     {         wordbook[] words = new wordbook[26];         random = new random();          return words[random.next(0, words.length)]; 

your random syntax missing. should folows:

random random = new random(); return words[random.next(0, words.length)]; 

also, function specifies returns string, return words[random], struct. hence error


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -