#include <DungeonRandom.h>
Random numbers for dungeon generation available from BluePrint BluePrintから利用可能なダンジョン生成用乱数
◆ GetBoolean()
bool UDungeonRandom::GetBoolean |
( |
| ) |
const |
◆ GetFloat()
float UDungeonRandom::GetFloat |
( |
| ) |
const |
Get a random number
- Returns
- Returns the range [type_min,type_max) if T is an integer, or [0,1] with equal probability if T is a real number.
◆ GetFloatFrom()
float UDungeonRandom::GetFloatFrom |
( |
const float |
to | ) |
const |
Get a random number
- Parameters
-
- Returns
- Returns the range [0,to) if T is an integer, or [0,to] with equal probability if T is a real number.
◆ GetFloatInRangeFrom()
float UDungeonRandom::GetFloatInRangeFrom |
( |
const float |
from, |
|
|
const float |
to |
|
) |
| const |
Get a random number
- Parameters
-
[in] | from | Lower value |
[in] | to | Upper value |
- Returns
- Returns the range [from,to) if T is an integer, or [from,to] with equal probability if T is a real number.
◆ GetInteger()
int32 UDungeonRandom::GetInteger |
( |
| ) |
const |
Get a random number
- Returns
- Returns the range [type_min,type_max) if T is an integer, or [0,1] with equal probability if T is a real number.
◆ GetIntegerFrom()
int32 UDungeonRandom::GetIntegerFrom |
( |
const int32 |
to | ) |
const |
Get a random number
- Parameters
-
- Returns
- Returns the range [0,to) if T is an integer, or [0,to] with equal probability if T is a real number.
◆ GetIntegerInRangeFrom()
int32 UDungeonRandom::GetIntegerInRangeFrom |
( |
const int32 |
from, |
|
|
const int32 |
to |
|
) |
| const |
Get a random number
- Parameters
-
[in] | from | Lower value |
[in] | to | Upper value |
- Returns
- Returns the range [from,to) if T is an integer, or [from,to] with equal probability if T is a real number.
◆ GetIntegerSign()
int32 UDungeonRandom::GetIntegerSign |
( |
| ) |
const |
◆ GetNumberSign()
float UDungeonRandom::GetNumberSign |
( |
| ) |
const |
The documentation for this class was generated from the following files:
- DungeonRandom.h
- DungeonRandom.cpp