Navigation
API > API/Plugins > API/Plugins/RigVM > API/Plugins/RigVM/RigVMFunctions > API/Plugins/RigVM/RigVMFunctions/Math
Inheritance Hierarchy
- FRigVMStruct
- FRigVMFunction_MathBase
- FRigVMFunction_RandomFloat
References
| Module | RigVM |
| Header | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMFunctions/Math/RigVMFunction_Random.h |
| Include | #include "RigVMFunctions/Math/RigVMFunction_Random.h" |
Syntax
USTRUCT&40;Meta&61;&40;DisplayName&61;"Random &40;Float&41;", Category&61;"Math&124;Random", TemplateName&61;"Random"&41;&41;
struct FRigVMFunction_RandomFloat : public FRigVMFunction_MathBase
Remarks
Generates a random float between a min and a max
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | BaseSeed | ||
| float | Duration | The duration at which the number won't change. | |
| float | LastResult | ||
| int32 | LastSeed | ||
| float | Maximum | ||
| float | Minimum | ||
| float | Result | ||
| int32 | Seed | ||
| float | TimeLeft |
Constructors
| Type | Name | Description | |
|---|---|---|---|
Overridden from FRigVMStruct
| Type | Name | Description | |
|---|---|---|---|
| void | Execute () |
Execute logic for this struct |