Generate pseudo random numbers using xorshift128+ algorithm.
This class is not thread-safe and should be instantiated once per thread.
Inheritance Hierarchy
Aerospike.ClientRandomShift
Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax
C#
public sealed class RandomShift
The RandomShift type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | RandomShift |
Generate seeds using standard Random class.
|
Properties
Name | Description | |
---|---|---|
![]() ![]() | ThreadLocalInstance |
Get thread local instance of RandomShift. The instance does not need
to be placed in IIS HttpContext because it will only be used immediately
in the same thread as it was retrieved. IIS will not have a chance
to switch threads on this instance.
|
Methods
Name | Description | |
---|---|---|
![]() | Next |
Generate random unsigned integer.
|
![]() | Next(Int32, Int32) |
Generate random integer between begin (inclusive) and end (exclusive).
|
![]() | NextBytes |
Generate random bytes.
|
![]() | NextLong |
Generate random unsigned long value.
|
![]() | NextString |
Generate a random string of given size.
|
See Also