Random select value on array factory Laravel : <p>I had user migration:</p>

<pre><code>$table-&gt;enum('type',['seller','buyer'])-&gt;default('seller');
</code></pre>

<p>I want when using ModelFactory how to get random value seller or buyer?</p>

<pre><code>$factory-&gt;define(App\User::class, function (Faker\Generator $faker) {

    static $password;

    return [
        'firstName' =&gt; $faker-&gt;name,
        'lastName' =&gt; $faker-&gt;name,
        'username' =&gt; $faker-&gt;unique()-&gt;username,
        'email' =&gt; $faker-&gt;unique()-&gt;safeEmail,
        'password' =&gt; md5('user123'),
        'bio' =&gt; $faker-&gt;sentence(3, true),
        'type' =&gt; ???,
    ];
});
</code></pre>
