'value' => $faker->randomElement(['1', '2']), or use IlluminateSupportArr; //on top $array = [1, 2, 3, 4, 5]; 'value' => Arr::random($array),