FGenericPlatformMath::Rand

Returns a random integer between 0 and RAND_MAX, inclusive

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static int32 Rand()

Remarks

Returns a random integer between 0 and RAND_MAX, inclusive

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