버전

menu_open
알림: 고객님의 주요 출시 버전( 2023.1.4.8496 )에 해당하는 최신 설명서로 이동했습니다. 특정 버전의 설명서를 보시려면 Audiokinetic 런처에서 오프라인 설명서를 다운로드하고 Wwise Authoring의 Offline Documentation을 확인하세요.
Wwise SDK 2023.1.4

#include <AkRng.h>

Public 멤버 함수

 CAkRng (AkUInt64 uSeed)
 Initialize using the specified seed 더 자세히 ...
 
AkUInt64 Seed () const
 Returns the current seed value of the RNG 더 자세히 ...
 
AkUInt32 Peek () const
 Returns the next random number to be generated without advancing the RNG state 더 자세히 ...
 
AkUInt32 Random ()
 Returns a random 31-bit unsigned integer 더 자세히 ...
 
AkInt32 RandomInt ()
 Returns a random 31-bit integer 더 자세히 ...
 
AkReal32 RandomFloat ()
 Returns a random float from 0.0 to 1.0 더 자세히 ...
 

정적 Public 멤버 함수

static AkInt32 Random (AkUInt64 &io_uSeed)
 Returns a random 31-bit unsigned integer using provided seed 더 자세히 ...
 
static AkInt32 RandomInt (AkUInt64 &io_uSeed)
 Returns a random 31-bit integer using provided seed 더 자세히 ...
 
static AkUInt32 Peek (AkUInt64 in_uSeed)
 Returns the next random number to be generated without advancing the RNG state 더 자세히 ...
 

정적 Public 속성

static constexpr AkUInt64 RANDOM_A = 6364136223846793005ULL
 
static constexpr AkUInt64 RANDOM_C = 1
 
static constexpr AkUInt32 RANDOM_MAX = 0x7FFFFFFF
 

상세한 설명

A pseudorandom number generator appropriate for introducing randomness in DSP processing LCG with Newlib/Musl characteristics: 64-bit seed, 31-bit output (see http://en.wikipedia.org/wiki/Linear_congruential_generator) Warning: This RNG is not cryptographically secure! Do not use it as such!

AkRng.h 파일의 34 번째 라인에서 정의되었습니다.


이 페이지가 도움이 되었나요?

지원이 필요하신가요?

질문이 있으신가요? 문제를 겪고 계신가요? 더 많은 정보가 필요하신가요? 저희에게 문의해주시면 도와드리겠습니다!

지원 페이지를 방문해 주세요

작업하는 프로젝트에 대해 알려주세요. 언제든지 도와드릴 준비가 되어 있습니다.

프로젝트를 등록하세요. 아무런 조건이나 의무 사항 없이 빠른 시작을 도와드리겠습니다.

Wwise를 시작해 보세요