the browser-facing portion of osu!
1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6declare(strict_types=1);
7
8namespace Database\Factories;
9
10use App\Models\Beatmap;
11use App\Models\RankHighest;
12use App\Models\User;
13
14class RankHighestFactory extends Factory
15{
16 protected $model = RankHighest::class;
17
18 public function definition(): array
19 {
20 return [
21 'mode' => array_rand_val(Beatmap::MODES),
22 'rank' => rand(1, 10000),
23 'user_id' => User::factory(),
24 ];
25 }
26}