
import java.util.Random;
// <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
// #[regen=yes,id=DCE.22D2B259-2B08-F0D3-E91A-148DA8F82C2F]
// </editor-fold> 
public class Dado {

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.93A4ADB8-B10F-54FA-0EEF-F4C95F7875EB]
    // </editor-fold> 
    private int valorCara;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.26150C73-40F6-6E08-7081-04912F3ED806]
    // </editor-fold> 
    private String color;

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,id=DCE.189925B5-D425-30AA-0076-EE5500289611]
    // </editor-fold> 
    public Dado () {
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.BA0BE1EB-4C48-5848-DEE2-15FEED4940BD]
    // </editor-fold> 
    public String getColor () {
        return color;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.11923026-96F3-C6F1-084C-0C0C9362A9F9]
    // </editor-fold> 
    public void setColor (String val) {
        this.color = val;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.7337F931-8E3B-1537-FC59-EB68761F7A24]
    // </editor-fold> 
    public int getValorCara () {
        return valorCara;
    }

    // <editor-fold defaultstate="collapsed" desc=" UML Marker "> 
    // #[regen=yes,regenBody=yes,id=DCE.A11F6114-F30C-D713-4A40-80C85B845C57]
    // </editor-fold> 
    public void setValorCara (int val) {
        this.valorCara = val;
    }

    public void tirarDado(){
        Random rnd=new Random();
        valorCara=rnd.nextInt(6)+1;
    }

}

