Skip to content

Instantly share code, notes, and snippets.

import scala.util.Random
import scala.collection.mutable
val data = List(List("t1", "ar1", "al1"), // track 1 and corresponding artist, album
List("t2", "ar2", "al2"), // 2 ''
List("t3", "ar3", "al3"), // 3 ''
List("t4", "ar4", "al4"), // 4 ''
List("t5", "t5", "al5"), // 5, the artist is missing so we randomly picked track in its place
List("t6", "ar6", "ar6")) // 6, the album is missing so we randomly picked artist in its place