FGenericPlatformMath::SRand

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

Choose your operating system:

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().