title: How do I make the random array choice the value of my state?
body: <p>I'm trying to randomly select items from my 'items' array, how do I make the randomly selected item the value of the 'randomItem' state?
  Heres what I have so far.</p>
  <pre><code>var items = ['joe', 'joe', 'mama', 'one direction went the other direction'];
  
  this.state.randomItem items[Math.floor(Math.random()*items.length)]
  
  
  
  
  
  export default class App extends Component {
  
  state = {
        randomItem: '',
      }    
  </code></pre>