<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.WeakConcurrentRandom

public static WeakConcurrentRandom Instance { get; }

Initializes a new instance of the WeakConcurrentRandom class.

public void Initialize()

Initializes generator with a set of random numbers.

public void Initialize(Func<ulong, IRandomNumberBatchGenerator> randomGeneratorFactory, int segmentIndexBits, int segmentBits)

Initializes generator with a set of random numbers.

public ulong Next()

Weakly thread safe next (random) operation id generator where 'weakly' indicates that it is unlikely we'll get into collision state.