FGenericPlatformMath::FRand

Returns a random float between 0 and 1, inclusive.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static float FRand()

Remarks

Returns a random float between 0 and 1, inclusive.