indigo.shared.dice

Members list

Type members

Classlikes

trait Dice

The Dice primitive supplies a consistent way to get psuedo-random values into your game.

The Dice primitive supplies a consistent way to get psuedo-random values into your game.

A dice instance can be found in the FrameContext object with 'max int' sides, and every frame the dice's seed value is set to the current running time of the game in milliseconds.

Dice also serve as a handy proxy to a number of functions found on a normal Random instance, like alphanumeric, but with a predicatable seed.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object Dice

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
Dice.type