Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public void AddSong(Song song)
 {
     this.songs.Add(song);
 }