title: How do I randomly select a name from an array and check if it's uppercase
body: <p>I need to randomly pick a name from an array in Ruby and then check if it uppercase. So far I have:</p>
  
  <pre><code>def namegenerator
    return @name.sample
  end
  
  def namechecker
    if name.upcase then
      check = TRUE
    else
      check = FALSE
    end
  end
  </code></pre>
  
  <p>It needs to be as two separate methods like this.</p>