So I'm having a brain fart at the moment and can't figure out how to finish this part of the code:
String[] diceNumbers = {"1", "2", "3", "4", "5", "6"};
String pickedNumber = (diceNumbers[new Random()]);
I saw this on another StackedOverflow past but I can't find it again.
I want it to be stored as a String variable so I can add it into another line of code because I'm using it in a Minecraft plugin
Bukkit.broadcastMessage(p.getName() + "has rolled a" + pickedNumber);
is what I am trying to do