FGenericPlatformMath::SRand

Returns a seeded random float in the range [0,1), using the seed from [SRandInit()](API\Runtime\Core\GenericPlatform\FGenericPlatformMath\SRandInit).

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Source

/Engine/Source/Runtime/Core/Private/GenericPlatform/GenericPlatformMath.cpp

Syntax

static float SRand()

Remarks

Returns a seeded random float in the range [0,1), using the seed from SRandInit().

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