Метод | Описание | |
---|---|---|
Initialize ( ) : void |
Initializes generator with a set of random numbers.
|
|
Initialize ( IRandomNumberBatchGenerator>.Func |
Initializes generator with a set of random numbers.
|
|
Next ( ) : ulong |
Weakly thread safe next (random) operation id generator where 'weakly' indicates that it is unlikely we'll get into collision state.
|
|
WeakConcurrentRandom ( ) : System |
Initializes a new instance of the WeakConcurrentRandom class.
|
Метод | Описание | |
---|---|---|
RegenerateSegment ( int newIndex ) : void |
Generates random number batch for segment which just exhausted according to value of the new index.
|
public Initialize ( IRandomNumberBatchGenerator>.Func |
||
randomGeneratorFactory | IRandomNumberBatchGenerator>.Func | Factory used to create random number batch generators. |
segmentIndexBits | int | Number of significant bits in segment index, i.e. value of 3 means 8 segments of random numbers - 0..7. |
segmentBits | int | Number of significant bits in random number index within segment, i.e. value of 10 means 1024 random numbers per segment. |
Результат | void |