title: An issue with variable expansion. Get a variable into the name of the variable to echo
body: <p>I'd really appreciate help with this. I have 3 strings and I want to echo one of them randomly.</p>
  <pre><code>INTRO0=&quot;Welcome to Foo&quot;
  INTRO1=&quot;Foo welcomes you&quot;
  INTRO2=&quot;We are glad to see you at Foo&quot;
  
  R=$((RANDOM%3))
  
  echo $INTRO${R}
  </code></pre>
  <p>I expect it to expand the value of R so it'll interpret it as e.g. echo $INTRO1</p>
  <p>I've made it work with if statements where it checks the value of R and prints the appropriate INTRO, but if I had 10 strings it would get messy with if statements. Is it possible to do it this way?</p>
  <p>Thanks</p>