Guest User

Untitled

a guest
Jan 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. /**
  2. * Created by bhard on 1/8/2018.
  3. */
  4. public class probability {
  5.  
  6. private int d1;
  7. private int d2;
  8. probability(int a, int b){
  9. a = d1;
  10. b = d2;
  11. //(Math.random() * 6)(int)
  12. }
  13. public int getD1(){
  14. int d1 = ((int)(Math.random() * 6 + 1.0));
  15. int d2 = ((int)(Math.random() * 6 + 1.0));
  16.  
  17. return d1+d2;
  18.  
  19. }
  20. }
Add Comment
Please, Sign In to add comment