mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
Using random generator from osu-framework
This commit is contained in:
parent
a0d0c1854b
commit
a6fbfc8349
@ -5,6 +5,7 @@ using System;
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using osu.Desktop.VisualTests.Platform;
|
using osu.Desktop.VisualTests.Platform;
|
||||||
using osu.Framework.Screens.Testing;
|
using osu.Framework.Screens.Testing;
|
||||||
|
using osu.Framework.MathUtils;
|
||||||
using osu.Game.Database;
|
using osu.Game.Database;
|
||||||
using osu.Game.Modes;
|
using osu.Game.Modes;
|
||||||
using osu.Game.Screens.Select;
|
using osu.Game.Screens.Select;
|
||||||
@ -15,7 +16,6 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
{
|
{
|
||||||
private BeatmapDatabase db, oldDb;
|
private BeatmapDatabase db, oldDb;
|
||||||
private TestStorage storage;
|
private TestStorage storage;
|
||||||
private Random rnd = new Random();
|
|
||||||
private PlaySongSelect songSelect;
|
private PlaySongSelect songSelect;
|
||||||
|
|
||||||
public override string Name => @"Song Select";
|
public override string Name => @"Song Select";
|
||||||
@ -78,9 +78,9 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
{
|
{
|
||||||
OnlineBeatmapSetID = 1234 + i,
|
OnlineBeatmapSetID = 1234 + i,
|
||||||
// Create random metadata, then we can check if sorting works based on these
|
// Create random metadata, then we can check if sorting works based on these
|
||||||
Artist = "MONACA " + rnd.Next(0, 9),
|
Artist = "MONACA " + RNG.Next(0, 9),
|
||||||
Title = "Black Song " + rnd.Next(0, 9),
|
Title = "Black Song " + RNG.Next(0, 9),
|
||||||
Author = "Some Guy " + rnd.Next(0, 9),
|
Author = "Some Guy " + RNG.Next(0, 9),
|
||||||
},
|
},
|
||||||
Beatmaps = new List<BeatmapInfo>(new[]
|
Beatmaps = new List<BeatmapInfo>(new[]
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user