title: Trying to get a random element from an array so that I can mark it as "booked"
body: <p>This is what I have in my method to randomly select a element in my array, however I'm not sure why it isn't working, I feel like I have tried every way of writing it, any ideas.</p>
  
  <pre><code>public static Seat BookSeat(Seat[][] x){
  
    Seat[][] book = new Seat[12][23];
  
      if (x != null){  
  
        book = x[(Math.random()*x.length)];  
  
      }
  
    return book;    
  }
  </code></pre>