Select Git revision
DelauneyMap.cs
Forked from
VECTO / VECTO Sim
Source project has a limited visibility.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
SMPThemes.java 617 B
package ddsl.enums;
import java.util.Random;
public enum SMPThemes {
Default_theme("SMP default theme"),
Blue_theme("Blue theme"),
Indigo_Pink_theme("Indigo & Pink theme"),
Pink_Blue_grey_theme("Pink & Blue grey"),
Purple_Green_theme("Purple & Green theme");
private final String name;
SMPThemes(String name) {
this.name = name;
}
public static String getRandomTheme() {
SMPThemes[] themes = values();
int size = themes.length;
Random random = new Random();
int index = random.nextInt(size);
return themes[index].name;
}
}