$factory->define(App\Question::class, function (Faker $faker) {
return [
'title' => rtrim($faker->sentence(rand(5, 10)), "."), //rtrim 뒤에 점제거
'body' => $faker->paragraphs(rand(3, 7), true),
'views' => rand(0, 10), //질문수 난수
'answers' => rand(0, 10), //답변
'votes' => rand(-3, 10) //투표
];
});