public side roll() { Random ran = new Random(); double ranNum = ran.NextDouble() * this.totalValue; this._FaceUp = hashSide(ranNum); return(_FaceUp); }
public QuarterCoin(List <side> sides) { this._Faces = sides; this._FaceUp = this._Faces[0]; this.totalValue = calculateTotalValue(); }