setup api call for random word. It is called from the showWordandDef class and gets called twice, the first to get a random word and the second time uses that word to get a definition.