String learningsArray[]=new array[4]{to live, computers, psychology, android, java}; Random rnd = new Random(); while(true){ Console.WriteLine(String.format("Learning {0}",learningsArray[rnd.next(0,3])); }