package hangman;
 import java.util.Random;
 public class Dictionary {
     int NUMBER_OF_WORDS = 81452;
     public static String FILE_NAME = "dictionaryCleaned.txt";
     private String[] dictionary = new String[NUMBER_OF_WORDS];
     public string getRandomWord() {
          Random rand = new Random();
          return randWord;
     }
 }
I am trying randomly generate a word from the array that contains the text file "dictionaryCleaned.txt" so that I can return the random word to my main method in a separate class. I feel like there could be something wrong with the array, as it does not appear to have the text file loaded into the empty array spaces. I need to return a word from "dictionary", but it is eluding me.
Thank you
 
     
     
     
     
     
    