title: Laravel faker generate gender from name
body: <p>What is the optimum way of generating gender using faker, having generated a name so that the gender matches the name </p>
  
  <pre><code> return [
      'name' =&gt; $faker-&gt;name,
      'email' =&gt; $faker-&gt;safeEmail,
      'username' =&gt; $faker-&gt;userName,
      'phone' =&gt; $faker-&gt;phoneNumber,
      'gender' =&gt; $faker-&gt;randomElement(['male', 'female']),//the gender does not match the name as it is.
      'address' =&gt; $faker-&gt;address,
      'dob' =&gt; $faker-&gt;date($format = 'Y-m-d', $max = 'now'),
      'password' =&gt; bcrypt('secret')
      ];
  </code></pre>