it works fine I just need help with the loop. I need it to take the sum of dice1 and run a loop that many times
Type: Posts; User: peper955
it works fine I just need help with the loop. I need it to take the sum of dice1 and run a loop that many times
so iv pieced together a program to act as the shell
public class chest{
public static void main(String[] args) {
int dice1;
welcome();
}
public static void...
Mostly i'v just changed the background of webpages and making buttons. I took 1 year of "programing" that turned out to be nothing more than a typing class with extra benefits.
Thats just it, i dont know where i'd start.
I know i nead a random number code for all 3 parts
And a loop that runs n times.
But i dont know how to start wrighting the code.
I'm trying to make a semi-random list of items for a maze, but since I'm new to java I wouldn't know how.
the way I'm currently doing it is, roll a d12+11 for n (the number of items in the chest),...