@Override
    public void run() {
        while(true) {
            //random time sleeping
            int timeToSleep = randInt(3, 10);
            try {
                TimeUnit.SECONDS.sleep(timeToSleep);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

            //now speak a random word
            String[] words = {"humpty dumpty", "lol", "okay", "i'm here", "words", "cheese cake"};
            int chosenIndex = randInt(0, words.length - 1);
            String chosenWord = words[chosenIndex];
            emit(new Event(EventType.OUTPUT, this, chosenWord));
        }
    }