Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by bhard on 1/8/2018.
- */
- public class probability {
- private int d1;
- private int d2;
- probability(int a, int b){
- a = d1;
- b = d2;
- //(Math.random() * 6)(int)
- }
- public int getD1(){
- int d1 = ((int)(Math.random() * 6 + 1.0));
- int d2 = ((int)(Math.random() * 6 + 1.0));
- return d1+d2;
- }
- }
Add Comment
Please, Sign In to add comment