Navigation
API > API/Plugins > API/Plugins/RigVM
Generates a random integer between a min and a max (inclusive)
| Name | FRigVMFunction_RandomInt |
| Type | struct |
| Header File | /Engine/Plugins/Runtime/RigVM/Source/RigVM/Public/RigVMFunctions/Math/RigVMFunction_Random.h |
| Include Path | #include "RigVMFunctions/Math/RigVMFunction_Random.h" |
Syntax
USTRUCT (Meta=(DisplayName="Random (Int)", Category="Math|Random", TemplateName="Random"))
struct FRigVMFunction_RandomInt : public FRigVMFunction_MathBase
Inheritance Hierarchy
- FRigVMStruct → FRigVMFunction_MathBase → FRigVMFunction_RandomInt
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FRigVMFunction_RandomInt() |
RigVMFunctions/Math/RigVMFunction_Random.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BaseSeed | int32 | RigVMFunctions/Math/RigVMFunction_Random.h | ||
| Duration | float | The duration at which the number won't change. | RigVMFunctions/Math/RigVMFunction_Random.h |
|
| LastResult | int32 | RigVMFunctions/Math/RigVMFunction_Random.h | ||
| LastSeed | int32 | RigVMFunctions/Math/RigVMFunction_Random.h | ||
| Maximum | int32 | The maximum value for the random number range (inclusive) | RigVMFunctions/Math/RigVMFunction_Random.h |
|
| Minimum | int32 | The minimum value for the random number range. | RigVMFunctions/Math/RigVMFunction_Random.h |
|
| Result | int32 | The resulting random number. | RigVMFunctions/Math/RigVMFunction_Random.h |
|
| Seed | int32 | The seed for the random number generator. | RigVMFunctions/Math/RigVMFunction_Random.h |
|
| TimeLeft | float | RigVMFunctions/Math/RigVMFunction_Random.h |
Functions
Public
Public Virtual
Overridden from FRigVMStruct
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Execute() |
Execute logic for this struct | RigVMFunctions/Math/RigVMFunction_Random.h |