FGenericPlatformMath::RandInit

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

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 void RandInit
(
    int32 Seed
)

Remarks

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