ISeekableRng<TCounter> Interface
An RNG that is seekable - i.e. it can be fast forwarded to any point in the stream.
Namespace
RandN
Interfaces
Implementing Types
ISeekableRng<TCounter>
IRng
ChaCha

Syntax

public interface ISeekableRng<TCounter> : IRng

Type Parameters

NameDescription
TCounter

Properties

NameProperty TypeSummary
PositionTCounter
The current position of the RNG.

Extension Methods

NameValueSummary
Sample<ISeekableRng<TCounter>, TDistribution, TResult>(TDistribution)TResult
Samples the distribution from rng.
Sample<ISeekableRng<TCounter>, TResult>(IDistribution<TResult>)TResult
Samples the distribution from rng.
ShuffleInPlace<ISeekableRng<TCounter>, T>(IList<T>)void
Shuffles a list using the in-place Fisher-Yates shuffling algorithm.