Class RandomNumberEffector
Gets a random number between the lower and upper bounds
Inherited Members
Namespace: Xareus.Scenarios.Arithmetics
Assembly: Xareus.Scenarios.Extra.dll
Syntax
[Renamed("SEVEN.Arithmetics.RandomNumberEffector", "SEVEN.Extra")]
public class RandomNumberEffector : AEffector
Constructors
RandomNumberEffector(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public RandomNumberEffector(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Type | Name | Description |
---|---|---|
Event | event | |
Dictionary<string, Parameter> | parameters | |
ContextHolder | contexts |
Fields
lowerBound
The lower bound for the random value
Declaration
[ConfigurationParameter("Lower Bound", Necessity.Required)]
public float lowerBound
Field Value
Type | Description |
---|---|
float |
output
Declaration
[ContextVariable("Result")]
protected ContextVariable<float> output
Field Value
Type | Description |
---|---|
ContextVariable<float> |
upperBound
The upper bound for the random value
Declaration
[ConfigurationParameter("Upper Bound", Necessity.Required)]
public float upperBound
Field Value
Type | Description |
---|---|
float |
Methods
EffectorUpdate()
Applies a processing as soon as the event occurs.
Declaration
public override void EffectorUpdate()