Interface ITerm
Interface for an evaluatable term of a dice expression.
Namespace: GoRogue.DiceNotation.Terms
Assembly: GoRogue.dll
Syntax
public interface ITerm
Methods
| Improve this Doc View SourceGetResult(IGenerator)
Evaluates the term and returns the result.
Declaration
int GetResult(IGenerator rng)
Parameters
Type | Name | Description |
---|---|---|
Troschuetz.Random.IGenerator | rng | The rng to use. |
Returns
Type | Description |
---|---|
System.Int32 | The result of evaluating the term. |