Playlist contains a full shuffle now.

This commit is contained in:
stijnb1234 2020-12-09 19:12:05 +01:00
parent 62ccfbc12b
commit 435007a502
3 changed files with 35 additions and 14 deletions

View file

@ -2,7 +2,12 @@ package me.mctp.api.maps;
import java.util.*;
public class Playlist<E> extends ArrayList<E> {
/**
* An {@link ArrayList} with shuffle support.
*
* @param <E> The type you want to store
*/
public class SongList<E> extends ArrayList<E> {
public void shuffle() {
Random random = new Random();