RealDocs

50 results for "random"

function
UKismetMathLibrary::RandomBool Engine

Returns a uniformly distributed random boolean — roughly 50/50 true or false on each call.

function
UKismetMathLibrary::RandomBoolFromStream Engine

Returns a random boolean with roughly a 50/50 chance, drawn from a specific FRandomStream for deterministic results.

function
UKismetMathLibrary::RandomBoolWithWeight Engine

Returns true with the given probability and false otherwise.

function
UKismetMathLibrary::RandomBoolWithWeightFromStream Engine

Returns true with the given probability using a caller-supplied FRandomStream instead of the global RNG.

function
UKismetMathLibrary::RandomFloat Engine

Returns a random float in the range [0, 1] using the global random stream.

function
UKismetMathLibrary::RandomFloatFromStream Engine

Returns a random float in the range [0, 1), drawn from a specific FRandomStream so it can be reproduced given the same seed.

function
UKismetMathLibrary::RandomFloatInRange Engine

Returns a random float uniformly distributed between Min and Max.

function
UKismetMathLibrary::RandomFloatInRangeFromStream Engine

Returns a random float between Min and Max, drawn from a specific FRandomStream so it can be reproduced given the same seed and call order.

function
UKismetMathLibrary::RandomInteger Engine

Returns a uniformly distributed random integer in the range [0, Max - 1].

function
UKismetMathLibrary::RandomInteger64 Engine

Returns a uniformly distributed random int64 in the range [0, Max).

function
UKismetMathLibrary::RandomInteger64InRange Engine

Returns a uniformly distributed random int64 between Min and Max, inclusive on both ends.

function
UKismetMathLibrary::RandomIntegerFromStream Engine

Returns a uniformly distributed random integer between 0 and Max - 1, drawn from a specific FRandomStream instead of the engine's global RNG, so the sequence is deterministic and reproducible from a known seed.

function
UKismetMathLibrary::RandomIntegerInRange Engine

Returns a random integer in the inclusive range [Min, Max].

function
UKismetMathLibrary::RandomIntegerInRangeFromStream Engine

Returns a random integer between Min and Max inclusive, drawn from a specific FRandomStream so results are reproducible given the same seed and call order.

function
UKismetMathLibrary::RandomPointInBoundingBox Engine

Returns a uniformly random point inside an axis-aligned bounding box defined by a center and per-axis half-extents.

function
UKismetMathLibrary::RandomPointInBoundingBoxFromStream Engine

Returns a random point inside an axis-aligned box, drawn from a specific FRandomStream so the point can be reproduced given the same seed.

function
UKismetMathLibrary::RandomPointInBoundingBoxFromStream_Box Engine

Returns a random point inside the given FBox, drawn from a specific FRandomStream so the point can be reproduced given the same seed.

function
UKismetMathLibrary::RandomPointInBoundingBox_Box Engine

Returns a uniformly random point inside an FBox.

function
UKismetMathLibrary::RandomRotator Engine

Generates a uniformly random rotation in Pitch [-90, 90] and Yaw [-180, 180].

function
UKismetMathLibrary::RandomRotatorFromStream Engine

Creates a random rotation using a specific FRandomStream, so the same seed and call order always reproduce the same rotation.

function
UImportanceSamplingLibrary::RandomSobolCell2D Engine

Returns a Sobol-distributed 2D position within a specific cell of a stratified grid, useful for jittered/stratified sampling patterns like Poisson-disk-style scattering.

function
UImportanceSamplingLibrary::RandomSobolCell3D Engine

Returns a Sobol-distributed 3D point within a specific cell of a stratified 3D grid, for volumetric jittered sampling patterns.

function
UImportanceSamplingLibrary::RandomSobolFloat Engine

Returns a Sobol-distributed quasi-random number between 0 and 1 for the given sample index and dimension.

function
UKismetMathLibrary::RandomUnitVector Engine

Returns a random unit vector (length 1) uniformly distributed over the surface of a sphere.

function
UKismetMathLibrary::RandomUnitVectorFromStream Engine

Returns a random vector of length 1.

function
UKismetMathLibrary::RandomUnitVectorInConeInDegrees Engine

Convenience wrapper around RandomUnitVectorInConeInRadians that accepts degrees.

function
UKismetMathLibrary::RandomUnitVectorInConeInDegreesFromStream Engine

Returns a random unit vector uniformly distributed within a cone around ConeDir, drawn from a specific FRandomStream.

function
UKismetMathLibrary::RandomUnitVectorInConeInRadians Engine

Returns a random unit vector within a symmetric cone around ConeDir, with uniform distribution on the sphere surface inside the cone.

function
UKismetMathLibrary::RandomUnitVectorInConeInRadiansFromStream Engine

Returns a random unit vector uniformly distributed within a cone around ConeDir, drawn from a specific FRandomStream so the result is reproducible given the same seed.

function
UKismetMathLibrary::RandomUnitVectorInEllipticalConeInDegrees Engine

Degree-unit wrapper around RandomUnitVectorInEllipticalConeInRadians.

function
UKismetMathLibrary::RandomUnitVectorInEllipticalConeInDegreesFromStream Engine

Returns a random unit vector within an elliptical cone around ConeDir, drawn from a specific FRandomStream.

function
UKismetMathLibrary::RandomUnitVectorInEllipticalConeInRadians Engine

Returns a random unit vector inside an elliptical cone around ConeDir with independently controlled horizontal (yaw) and vertical (pitch) half-angles.

function
UKismetMathLibrary::RandomUnitVectorInEllipticalConeInRadiansFromStream Engine

Returns a random unit vector within a cone around ConeDir whose cross-section is an ellipse rather than a circle, letting yaw and pitch spread differ independently, drawn from a specific FRandomStream for reproducible results.

function
UKismetArrayLibrary::Array_Random Engine

Picks a random element from an array using the global random stream and returns both the value and its index.

function
UKismetArrayLibrary::Array_RandomFromStream Engine

Picks a random element from an array using a caller-supplied FRandomStream, producing reproducible results for a given seed.

function
UKismetMathLibrary::BreakRandomStream Engine

Extracts the initial seed value from an FRandomStream.

function
UNavigationSystemV1::GetRandomReachablePointInRadius NavigationSystem

Returns a random NavMesh point that is reachable from Origin within the given radius.

function
UKismetMathLibrary::LinearColor_SetRandomHue Engine

Chooses a random hue and writes a visually pleasing fully-saturated color into the target LinearColor.

function
UKismetMathLibrary::MakeRandomStream Engine

Creates an FRandomStream initialized with a specific seed.

function
UKismetMathLibrary::MakeRandomStreamFromLocation Engine

Creates a deterministic FRandomStream whose seed is derived from a world-space location, optionally quantized to a grid.

function
UKismetMathLibrary::ResetRandomStream Engine

Resets a random stream back to its initial seed, so the next draw reproduces the same sequence of values as when the stream was first created.

function
UKismetMathLibrary::SeedRandomStream Engine

Reseeds a random stream using the engine's global RNG (FMath::Rand), producing a new, unpredictable starting point for subsequent draws.

function
UKismetMathLibrary::SetRandomStreamSeed Engine

Sets a random stream's seed to a specific known value, making its subsequent sequence of random draws fully deterministic and reproducible.

function
UKismetArrayLibrary::Array_Shuffle Engine

Randomizes the order of the elements in an array in place using the engine's global random stream.

function
UKismetArrayLibrary::Array_ShuffleFromStream Engine

Randomizes the order of the elements in an array in place, drawing randomness from the given FRandomStream for deterministic results.

struct
FMath Core

The primary math utility struct in Unreal Engine, providing static functions for arithmetic, interpolation, trigonometry, random number generation, and geometric operations.

function
UKismetMathLibrary::PerlinNoise1D Engine

Generates 1D Perlin noise from Value, returning a continuous, smoothly-varying random value between -1.

property
UAudioComponent::PitchModulationMax Engine

The upper bound to use when this component randomly determines a pitch multiplier for playback.

property
UAudioComponent::PitchModulationMin Engine

The lower bound to use when this component randomly determines a pitch multiplier for playback.

function
FMath::RandRange Core

Returns a random integer in the inclusive range [Min, Max].