Skip to content

IRng

Namespace Nfty.Core.Generation in assembly Nfty.Ticket.

public interface IRng

The single source of randomness a run consumes. An interface so a test can feed a fixed sequence, and so the generator cannot reach for Random by accident.

Methods

NextDouble()

public abstract double NextDouble();

The next sample.

Returns. A value in [0,1).