Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Random;
- class apples{
- public static void main(String[] args){
- Random dice = new Random();
- int number;
- for(int counter=1; counter<=10;counter++){
- number = dice.nextInt(6);
- System.out.println(number + " ");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement