title: Made a random name generator: How to make the first letter uppercase OR lowercase randomized?
body: <p>Disclaimer: I'm novice. </p>
  
  <p>I've been making a random name generator in PHP and I'd like for it to also randomize uppercase / lowercase the first letters but haven't been able to figoure out how to do it.</p>
  
  <p>I've tried everything I know so far with no luck.</p>
  
  <pre><code>function randomname(){
  $names = array(
      'Bob',
      'Pieter',
      'Josh',
      'Dennis',
      'Charlotte',
      'Sophie',
      'Robin',
      'Renee'
  );
  
  $surnames = array(
      'Bouwer',
      'Cola',
      'Fanta',
      'Pepsi',
      'De Berg',
      'Kaas',
      'Hamburger'
  );
  
  
  $random = rand(0,7);
  $random2 = rand(0,6);
  
  
  echo ($names[$random]);
  
  echo ($surnames[$random2]);
  
  }
  
  
  echo randomname()
  </code></pre>