Class RandomNumberEffector
Gets a random number between the lower and upper bounds
Inheritance
RandomNumberEffector
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
Fields
lowerBound
The lower bound for the random value
Declaration
[ConfigurationParameter("Lower Bound", Necessity.Required)]
public float lowerBound
Field Value
output
Declaration
[ContextVariable("Result")]
protected ContextVariable<float> output
Field Value
upperBound
The upper bound for the random value
Declaration
[ConfigurationParameter("Upper Bound", Necessity.Required)]
public float upperBound
Field Value
Methods
EffectorUpdate()
Applies a processing as soon as the event occurs.
Declaration
public override void EffectorUpdate()
Overrides
GetRandomDouble(float, float)
Declaration
public static double GetRandomDouble(float lowerBound, float upperBound)
Parameters
| Type |
Name |
Description |
| float |
lowerBound |
|
| float |
upperBound |
|
Returns