}
}
private void buildSongsList(IProgressMonitor monitor) {
Random generator = new Random();
TitleItem item;
_finalSongsList = new LibraryList();
int currentIndex;
while ((_finalSongsList.getChildCount() < _songsNumber) &&
(_songsList.size() > 0)) {
if (monitor.isCanceled())
return;
currentIndex = generator.nextInt(_songsList.size());
item = (TitleItem) _songsList.get(currentIndex);
_finalSongsList.addChild(item.getFilePath(), item);
_songsList.remove(currentIndex);
monitor.worked(1);
}