Method | Description | |
---|---|---|
GetFloat ( bool includeOne = true ) : float |
Get float random number from range [0, 1) or [0, 1] for includeOne=true.
|
|
GetFloat ( float min, float max, bool includeMax = true ) : float |
Get float random number from range [min, max) or [min, max] for includeMax=true.
|
|
GetFloatStatic ( bool includeOne = true ) : float |
Get float random number from range [0, 1) or [0, 1] for includeOne=true from singleton rng.
|
|
GetFloatStatic ( float min, float max, bool includeMax = true ) : float |
Get float random number from range [min, max) or [min, max] for includeMax=true from singleton rng.
|
|
GetInt32 ( int max ) : int |
Get int32 random number from range [0, max).
|
|
GetInt32 ( int min, int max ) : int |
Get int32 random number from range [min, max).
|
|
GetInt32Static ( int n ) : int |
Get int32 random number from range [0, n) from singleton rng.
|
|
GetInt32Static ( int min, int max ) : int |
Get int32 random number from range [min, max) from singleton rng.
|
|
Rng ( ) : UnityEngine |
Default initialization.
|
|
Rng ( long seed ) : UnityEngine |
Initialization with custom seed.
|
|
SetSeed ( long seed ) : void |
Set new seed.
|
|
SetSeedStatic ( long seed ) : void |
Set new seed for singleton rng.
|
Method | Description | |
---|---|---|
GetRandomUInt32 ( ) : ulong |
public GetFloat ( bool includeOne = true ) : float | ||
includeOne | bool | Include 1 value for searching. |
return | float |
public GetFloat ( float min, float max, bool includeMax = true ) : float | ||
min | float | Min value. |
max | float | Max value. |
includeMax | bool | Include max value for searching. |
return | float |
public static GetFloatStatic ( bool includeOne = true ) : float | ||
includeOne | bool | Include 1 value for searching. |
return | float |
public static GetFloatStatic ( float min, float max, bool includeMax = true ) : float | ||
min | float | Min value. |
max | float | Max value. |
includeMax | bool | Include max value for searching. |
return | float |
public GetInt32 ( int min, int max ) : int | ||
min | int | Min value. |
max | int | Max value (excluded). |
return | int |
public static GetInt32Static ( int n ) : int | ||
n | int | . |
return | int |
public static GetInt32Static ( int min, int max ) : int | ||
min | int | Min value. |
max | int | Max value (excluded). |
return | int |
public static SetSeedStatic ( long seed ) : void | ||
seed | long | Seed. |
return | void |