I use Faker for the first time with Laravel. I can not find anywhere to solve my problem.
2D "," 3D "or" common "with 20% chance for" web "," 2D "," 3D "and 40% For "common".
Is it possible to do this with Faker?
Thank you
I use Faker for the first time with Laravel. I can not find anywhere to solve my problem.
2D "," 3D "or" common "with 20% chance for" web "," 2D "," 3D "and 40% For "common".
Is it possible to do this with Faker?
Thank you
Use the randomElement
method:
$faker->randomElement(['a', 'b', 'c', 'd']);