Dice

trait Dice

All dice rolls are from value 1 to N inclusive. Like a dice.

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def roll: Int
def roll(sides: Int): Int
def rollFromZero(sides: Int): Int
def shuffle[A](items: List[A]): List[A]

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Returns:

a string representation of the object.

Definition Classes
Any

Abstract fields

val seed: Long