public class NSidedDie extends Object
ManagedObject since
there is no persistant state and no need to lock any accesses.| Modifier and Type | Method and Description |
|---|---|
static int |
roll10Sided()
Provides the result of rolling a 10-sided die.
|
static int |
roll12Sided()
Provides the result of rolling a 12-sided die.
|
static int |
roll20Sided()
Provides the result of rolling a 20-sided die.
|
static int |
roll4Sided()
Provides the result of rolling a 4-sided die.
|
static int |
roll6Sided()
Provides the result of rolling a 6-sided die.
|
static int |
roll8Sided()
Provides the result of rolling an 8-sided die.
|
static int |
rollNSided(int n)
Provides the results of rolling an N-sided die.
|
public static int roll4Sided()
public static int roll6Sided()
public static int roll8Sided()
public static int roll10Sided()
public static int roll12Sided()
public static int roll20Sided()
public static int rollNSided(int n)
Copyright © 2013. All Rights Reserved.