FGenericPlatformMath::RandInit

Seeds global random number functions [Rand()](API\Runtime\Core\GenericPlatform\FGenericPlatformMath\Rand) and [FRand()](API\Runtime\Core\GenericPlatform\FGenericPlatformMath\FRand)

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

static void RandInit
(
    int32 Seed
)

Remarks

Seeds global random number functions Rand() and FRand()

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