Advertisement
ZiphTech

Dice Switch Statement Fix

Dec 4th, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. public static void diceNumber()
  2. {
  3.         Random r = new Random();
  4.         int dSidesInt = 4;
  5.         int diceType, max, dice1, dice2;
  6.        
  7.         diceType = dSidesInt;
  8.         max = dSidesInt;
  9.         dice1 = r.nextInt(max) + 1;
  10.         dice2 = r.nextInt(max) + 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement