<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\TrainingWorkoutSection;
use Faker\Generator as Faker;

$factory->define(TrainingWorkoutSection::class, function (Faker $faker) {
    $type = $faker->randomElement(["Rest", "AMRAP", "EMOM", "For Time", "E2MOM", "Tabata", "Death By","Chipper"]);

    return [
        "description" => $faker->sentence,
        "seconds" => 60*($faker->numberBetween(4,32)), //pot ser que en for time tingui time cap
        "rounds" => $type=="For Time" ? $faker->numberBetween(3, 10) : null,
        "type" => $type,
        "custom_score" => $faker->boolean(),
        "custom_score_explanation" => $faker->sentence
    ];
});
