private static Song GenerateSong() { int titleNumber = rnd.Next(1, 20); double duration = rnd.NextDouble() * (5.5 - 3.3) + 3.3; var song = new Song("Title" + titleNumber, Math.Round(duration, 2)); return song; }
public void AddSong(Song song) { this.songs.Add(song); }