Randomizes a given interval of integers, i.e. arrange them in random order.
More...
|
| static int | CalcBits (int min, int max) |
| | Calculates needed bits (from the quota) for generating a random sequence. NOTE: The calculated value is an approximation and will may differ from the real quota deducted from the server.
|
| |
| static List< int > | Generate (int min, int max, int number=0, bool prng=false) |
| | Generates random sequence.
|
| |
| static async Task< List< int > > | GenerateAsync (int min, int max, int number=0, bool prng=false) |
| | Generates random sequence asynchronously.
|
| |
| static 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.
|
| |
|
| static List< int > | Result = [] [get] |
| | Returns the sequence from the last generation.
|
| |
Properties inherited from BogaNet.TrueRandom.BaseTRNG |
| static int | Seed [get] |
| | Returns a seed for the PRNG.
|
| |
Randomizes a given interval of integers, i.e. arrange them in random order.
◆ CalcBits()
| static int BogaNet.TrueRandom.SequenceTRNG.CalcBits |
( |
int | min, |
|
|
int | max ) |
|
static |
Calculates needed bits (from the quota) for generating a random sequence. NOTE: The calculated value is an approximation and will may differ from the real quota deducted from the server.
- Parameters
-
| min | Start of the interval |
| max | End of the interval |
- Returns
- Needed bits for generating the sequence.
◆ Generate()
| static List< int > BogaNet.TrueRandom.SequenceTRNG.Generate |
( |
int | min, |
|
|
int | max, |
|
|
int | number = 0, |
|
|
bool | prng = false ) |
|
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 (optional, max range: max - min) |
| prng | Use Pseudo-Random-Number-Generator (optional, default: false) |
- Returns
- List with the generated sequence.
◆ GenerateAsync()
| static async Task< List< int > > BogaNet.TrueRandom.SequenceTRNG.GenerateAsync |
( |
int | min, |
|
|
int | max, |
|
|
int | number = 0, |
|
|
bool | prng = false ) |
|
static |
Generates random sequence asynchronously.
- 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 (optional, max range: max - min) |
| prng | Use Pseudo-Random-Number-Generator (optional, default: false) |
- Returns
- List with the generated sequence.
◆ GeneratePRNG()
| static List< int > BogaNet.TrueRandom.SequenceTRNG.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 (optional, max range: max - min) |
| seed | Seed for the PRNG (optional, default: 0 (=standard)) |
- Returns
- List with the generated sequence.
◆ Result
| List<int> BogaNet.TrueRandom.SequenceTRNG.Result = [] |
|
staticget |
Returns the sequence from the last generation.
- Returns
- Sequence from the last generation.
The documentation for this class was generated from the following file:
- /Users/stefanlaubenberger/Projects/CSharp/BogaNet/BogaNet.TrueRandom/TrueRandom/SequenceTRNG.cs