Static Public Member Functions

DiceMaster.Simulation Class Reference

Simulates dice throws, when we do not need actual dice to be rolled. More...

List of all members.

Static Public Member Functions

static int SimulateThrow (int numberOfFaces)
 Simulates a single dice throw.
static int[] SimulateThrows (int numberOfFaces, int numberOfDice)
 Simulates a number of dice throws.

Detailed Description

Simulates dice throws, when we do not need actual dice to be rolled.


Member Function Documentation

static int DiceMaster.Simulation.SimulateThrow ( int  numberOfFaces  )  [static]

Simulates a single dice throw.

Parameters:
numberOfFaces The number of faces of the thrown dice.
Returns:
The value returned (0,numberOfFaces]
static int [] DiceMaster.Simulation.SimulateThrows ( int  numberOfFaces,
int  numberOfDice 
) [static]

Simulates a number of dice throws.

Parameters:
numberOfFaces Number of faces for each dice.
numberOfDice Number of dice to throw.
Returns:
An array with the returned values.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties Defines