This module will randomize a given interval of integers, i.e. arrange them in random order.
More...
|
static System.Collections.IEnumerator | Generate (int min, int max, int number=0, bool prng=false, bool silent=false, string id="") |
| Generates random sequence. More...
|
|
static System.Collections.Generic.List< int > | GeneratePRNG (int min, int max, int number=0, int seed=0) |
| Generates a random sequence with the C#-standard Pseudo-Random-Number-Generator. More...
|
|
static System.Collections.Generic.List< int > | GenerateInEditor (int min, int max, int number=0, bool prng=false, string id="") |
| Generates random sequence (Editor only). More...
|
|
|
static System.Collections.Generic.List< int > | Result => new System.Collections.Generic.List<int>(result) |
| Returns the sequence from the last generation. More...
|
|
This module will randomize a given interval of integers, i.e. arrange them in random order.
◆ Generate()
static System.Collections.IEnumerator Crosstales.TrueRandom.Module.ModuleSequence.Generate |
( |
int |
min, |
|
|
int |
max, |
|
|
int |
number = 0 , |
|
|
bool |
prng = false , |
|
|
bool |
silent = false , |
|
|
string |
id = "" |
|
) |
| |
|
static |
Generates random sequence.
- Parameters
-
min | Start of the interval (range: -1'000'000'000 - 1'000'000'000) |
max | End of the interval (range: -1'000'000'000 - 1'000'000'000) |
number | How many numbers you have in the result (max range: max - min, 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<int> Crosstales.TrueRandom.Module.ModuleSequence.GenerateInEditor |
( |
int |
min, |
|
|
int |
max, |
|
|
int |
number = 0 , |
|
|
bool |
prng = false , |
|
|
string |
id = "" |
|
) |
| |
|
static |
Generates random sequence (Editor only).
- Parameters
-
min | Start of the interval (range: -1'000'000'000 - 1'000'000'000) |
max | End of the interval (range: -1'000'000'000 - 1'000'000'000) |
number | How many numbers you have in the result (max range: max - min, optional) |
prng | Use Pseudo-Random-Number-Generator (default: false, optional) |
id | id to identify the generated result (optional) |
- Returns
- List with the generated sequence.
◆ GeneratePRNG()
static System.Collections.Generic.List<int> Crosstales.TrueRandom.Module.ModuleSequence.GeneratePRNG |
( |
int |
min, |
|
|
int |
max, |
|
|
int |
number = 0 , |
|
|
int |
seed = 0 |
|
) |
| |
|
static |
Generates a random sequence with the C#-standard Pseudo-Random-Number-Generator.
- Parameters
-
min | Start of the interval |
max | End of the interval |
number | How many numbers you have in the result (max range: max - min, optional) |
seed | Seed for the PRNG (default: 0 (=standard), optional) |
- Returns
- List with the generated sequence.
◆ Result
System.Collections.Generic.List<int> Crosstales.TrueRandom.Module.ModuleSequence.Result => new System.Collections.Generic.List<int>(result) |
|
static |
Returns the sequence from the last generation.
- Returns
- Sequence from the last generation.
◆ OnGenerateFinished
GenerateSequenceFinished Crosstales.TrueRandom.Module.ModuleSequence.OnGenerateFinished |
|
static |
Event to get a message with the generated sequence when finished.
◆ OnGenerateStart
GenerateSequenceStart Crosstales.TrueRandom.Module.ModuleSequence.OnGenerateStart |
|
static |
Event to get a message when generating sequence 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/ModuleSequence.cs