Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FMath
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static int32 RandRange
(
int32 Min, |
Helper function for rand implementations. Returns a random number >= Min and <= Max | Math/UnrealMathUtility.h | |
static int64 RandRange
(
int64 Min, |
Math/UnrealMathUtility.h | ||
static float RandRange
(
float InMin, |
Util to generate a random number in a range. | Math/UnrealMathUtility.h | |
static double RandRange
(
double InMin, |
Math/UnrealMathUtility.h |
RandRange(int32, int32)
Description
Helper function for rand implementations. Returns a random number >= Min and <= Max
| Name | RandRange |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static int32 RandRange
(
int32 Min,
int32 Max
)
RandRange(int64, int64)
| Name | RandRange |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static int64 RandRange
(
int64 Min,
int64 Max
)
RandRange(float, float)
Description
Util to generate a random number in a range. Overloaded to distinguish from int32 version, where passing a float is typically a mistake.
| Name | RandRange |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static float RandRange
(
float InMin,
float InMax
)
RandRange(double, double)
| Name | RandRange |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/UnrealMathUtility.h |
| Include Path | #include "Math/UnrealMathUtility.h" |
static double RandRange
(
double InMin,
double InMax
)