All pastes #742387 Raw Edit

Galactic Monopoly

public java v1 · immutable
·published 2007-10-19 14:01 UTC
rendered paste body
public class Dice{  private int valueA;  private int valueB;  private Random rand;  public Dice()  {    Random rand = new Random();    valueA = rand.nextInt(6) + 1;    valueB = rand.nextInt(6) + 1;  }  public int throw()  {    valueA = rand.nextInt(6) + 1    valueB = rand.nextInt(6) + 1;    return(valueA + valueB);  }  public int current() {return(valueA + valueB);}  public boolean doubles() {return(valueA == valueB);}}