title: Espresso - How to click on a random RecyclerView item?
body: <p>There are a few posts that show how can you click a certain <strong>fixed</strong> item in the RecyclerView with Espresso, like:</p>
  
  <p><a href="https://stackoverflow.com/questions/27396583/how-to-click-on-an-item-inside-a-recyclerview-in-espresso">How to click on an item inside a RecyclerView in Espresso</a></p>
  
  <p><a href="https://stackoverflow.com/questions/28476507/using-espresso-to-click-view-inside-recyclerview-item">Using Espresso to click view inside RecyclerView item</a></p>
  
  <hr>
  
  <p><strong>Example:</strong></p>
  
  <pre><code>//Change the 0 with any other number, will be the position of the item clicked.
  onView(withId(R.id.a_main_recycler))
                  .perform(RecyclerViewActions
                          .actionOnItemAtPosition(0, click()));
  </code></pre>
  
  <hr>
  
  <p>But, what if you want to click on a <strong>random</strong> item in the RecyclerView?</p>