Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Misc
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Misc/RandomStream.h |
| Include | #include "uLang/Common/Misc/RandomStream.h" |
Syntax
class CRandomStream
Remarks
Implements a thread-safe random number stream. Very bad quality in the lower bits. Don't use the modulus (%) operator.
Constructors
| Type | Name | Description | |
|---|---|---|---|
CRandomStream
(
int32_t Seed |
Default constructor. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| float | FRandRange
(
float Min, |
||
| void | Initialize
(
int32_t Seed |
Initializes this random stream with the specified seed value. | |
| void | MutateSeed () |
Mutates the current seed into the next seed. | |
| bool | RandBool () |
||
| int32_t | RandRange
(
int32_t Min, |