Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // part 1
- public static double abc(double total){
- int r = 0;
- int sum1 = 0;
- int s = 0;
- for( r=0;sum1<total;r++){
- s = (int) ((Math.ceil(6*Math.random()))+(Math.ceil(6*Math.random())));
- sum1 = sum1 +s;
- }
- return r;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement