Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Pityu Szíviso
Added: Nov 22, 2018 9:48 PM
Views: 15
Tags: no tags
  1. public ArrayList<Integer> roll() {
  2.         for (int i = 0; i < 6; i++) {
  3.             dice.add((int) (Math.random() * 6) + 1);
  4.         }
  5.         return dice;
  6.     }