public interface Dice
| Modifier and Type | Method and Description |
|---|---|
int |
roll()
Rolls this dice and return the value.
|
int |
sides()
Returns how much sides this dice has.
|
int sides()
int roll()
The value will always be in the interval [1, sides()].
Copyright © 2017. All rights reserved.