I i would like to make a random fonction that output a number between 0 to 7. Can anyone help me on that one?
http://download.oracle.com/javase/6/docs/api/java/util/Random.html Specifically, try something along the lines of: Code: java.util.Random rand = new java.util.Random(); System.out.println(Integer.toString(rand.nextInt(8)));