title: Print message in the repository randomly
body: <p>I have been trying to print the message stored with the <code>jpaRepository</code> but without luck I couldnt do it and googled it as well and I just don't understand :)
  I did tried to do and play using a <code>ListArray</code> which have dont the trick it goes;</p>
  
  <pre><code>@RequestMapping("/")
  @ResponseBody
  public String home() {  
  
     ArrayList&lt;String&gt; List = new ArrayList();
     List.add(msg1.getContent());
     List.add(msg.getContent());
  
     Random random = new Random();
     int index = random.nextInt(List.size());
  
     return List.get(index);
  }
  </code></pre>
  
  <p>So, when accessing the <code>index</code> i get randomly what is in the array, but I would love to know how would I implement this with a <code>jpaRepository</code>, i did this;</p>
  
  <pre><code>@RequestMapping("/")
  @ResponseBody
  public String home() {
  
     HelloMessage msg = new HelloMessage();
     msg.setContent("Hello");
     HelloMessageRepository.save(msg);
  
     HelloMessage msg1 = new HelloMessage();
     msg1.setContent("World");
     helloMessageRepository.save(msg1);
  
     return ??;
  }
  </code></pre>
  
  <p>So the problem here is how would i return to get randomly the strings within the repository? Kindly help, appreciated.</p>