Alice Faker library choose random from array
<p>I am trying to generate a dummy data using <a href="https://github.com/hautelook/AliceBundle" rel="noreferrer">AliceBundle</a> for Symfony Framework. Everything seems to be working fine except I am looking for a way to randomly assign data from an array to a property called <code>type</code>. Looking at the <a href="https://github.com/fzaninotto/Faker#fakerproviderbase" rel="noreferrer">faker library</a> I can see that I can generate that using <code>randomElement($array = array ('a','b','c'))</code></p>

<p>I am trying to convert that into <code>YML</code> and I think that is equivalent of </p>

<pre><code>&lt;randomElement(['a','b','c'])&gt;
</code></pre>

<p>But this produces an error</p>

<blockquote>
  <p>[Nelmio\Alice\Throwable\Exception\FixtureBuilder\ExpressionLanguage\LexException]
  Could not lex the value "['a'".</p>
</blockquote>

<p>This is my complete <code>yml</code></p>

<pre><code>AppBundle\Entity\Job:
    job{1..5}:
        title: &lt;jobTitle()&gt;
        description: &lt;paragraph(3)&gt;
        length: "3_months_full_time"
        type: &lt;randomElement(['a','b','c'])&gt;
        bonus: &lt;paragraph(3)&gt;
        expired_at: "2016-12-21"
        job_user: "@emp*"
</code></pre>