This module will generate true random floats in configurable intervals.
More...
|
static System.Collections.IEnumerator | Generate (float min, float max, int number=1, bool prng=false, bool silent=false, string id="") |
| Generates random floats. More...
|
|
static System.Collections.Generic.List< float > | GeneratePRNG (float min, float max, int number=1, int seed=0) |
| Generates random floats with the C#-standard Pseudo-Random-Number-Generator. More...
|
|
static System.Collections.Generic.List< float > | GenerateInEditor (float min, float max, int number=1, bool prng=false, string id="") |
| Generates random floats (Editor only). More...
|
|
|
static System.Collections.Generic.List< float > | Result => new System.Collections.Generic.List<float>(result) |
| Returns the list of floats from the last generation. More...
|
|
This module will generate true random floats in configurable intervals.
◆ Generate()
static System.Collections.IEnumerator Crosstales.TrueRandom.Module.ModuleFloat.Generate |
( |
float |
min, |
|
|
float |
max, |
|
|
int |
number = 1 , |
|
|
bool |
prng = false , |
|
|
bool |
silent = false , |
|
|
string |
id = "" |
|
) |
| |
|
static |
Generates random floats.
- Parameters
-
min | Smallest possible number (range: -1'000'000'000 - 1'000'000'000) |
max | Biggest possible number (range: -1'000'000'000 - 1'000'000'000) |
number | How many numbers you want to generate (range: 1 - 10'000, default: 1, optional) |
prng | Use Pseudo-Random-Number-Generator (default: false, optional) |
silent | Ignore callbacks (default: false, optional) |
id | id to identify the generated result (optional) |
◆ GenerateInEditor()
static System.Collections.Generic.List<float> Crosstales.TrueRandom.Module.ModuleFloat.GenerateInEditor |
( |
float |
min, |
|
|
float |
max, |
|
|
int |
number = 1 , |
|
|
bool |
prng = false , |
|
|
string |
id = "" |
|
) |
| |
|
static |
Generates random floats (Editor only).
- Parameters
-
min | Smallest possible number (range: -1'000'000'000 - 1'000'000'000) |
max | Biggest possible number (range: -1'000'000'000 - 1'000'000'000) |
number | How many numbers you want to generate (range: 1 - 10'000, default: 1, optional) |
prng | Use Pseudo-Random-Number-Generator (default: false, optional) |
id | id to identify the generated result (optional) |
- Returns
- List with the generated floats.
◆ GeneratePRNG()
static System.Collections.Generic.List<float> Crosstales.TrueRandom.Module.ModuleFloat.GeneratePRNG |
( |
float |
min, |
|
|
float |
max, |
|
|
int |
number = 1 , |
|
|
int |
seed = 0 |
|
) |
| |
|
static |
Generates random floats with the C#-standard Pseudo-Random-Number-Generator.
- Parameters
-
min | Smallest possible number |
max | Biggest possible number |
number | How many numbers you want to generate (default: 1, optional) |
seed | Seed for the PRNG (default: 0 (=standard), optional) |
- Returns
- List with the generated floats.
◆ Result
System.Collections.Generic.List<float> Crosstales.TrueRandom.Module.ModuleFloat.Result => new System.Collections.Generic.List<float>(result) |
|
static |
Returns the list of floats from the last generation.
- Returns
- List of floats from the last generation.
◆ OnGenerateFinished
GenerateFloatFinished Crosstales.TrueRandom.Module.ModuleFloat.OnGenerateFinished |
|
static |
Event to get a message with the generated floats when finished.
◆ OnGenerateStart
GenerateFloatStart Crosstales.TrueRandom.Module.ModuleFloat.OnGenerateStart |
|
static |
Event to get a message when generating floats has started.
The documentation for this class was generated from the following file:
- C:/Users/slaub/Unity/assets/TrueRandom/TrueRandomPro/Assets/Plugins/crosstales/TrueRandom/Scripts/Module/ModuleFloat.cs