{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Die.java - import java.util.Random public class Die cfw...

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.util.Random; public class Die { private int sides; private int values; public Die(int numSides) { sides=numSides; roll(); } public void roll() { Random rand =new Random();
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}