use FakerFactory; $faker = Factory::create(); // Returns a random element from the given array. echo $faker->randomElements(['a', 'b', 'c', 'd', 'e']); // 'c'