FVector4Distribution::GetRandomValue

Samples a value randomly distributed between two values.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/Distributions.h

Include

#include "Distributions.h"

Syntax

void GetRandomValue
(
    float Time,
    float *__restrict OutValue,
    FRandomStream & RandomStream
) const

Remarks

Samples a value randomly distributed between two values.

Parameters

Parameter

Description

Time

Time at which to sample the distribution.

OutValue

Upon return contains the sampled value.

RandomStream

Random stream from which to retrieve random fractions.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss