バージョン

menu_open
Wwise SDK 2022.1.12

#include <AkRng.h>

公開メンバ関数

 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 [詳解]
 

静的公開メンバ関数

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 [詳解]
 

静的公開変数類

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.h34 行目に定義があります。


このページはお役に立ちましたか?

サポートは必要ですか?

ご質問や問題、ご不明点はございますか?お気軽にお問い合わせください。

サポートページをご確認ください

あなたのプロジェクトについて教えてください。ご不明な点はありませんか。

プロジェクトを登録していただくことで、ご利用開始のサポートをいたします。

Wwiseからはじめよう