RandomExtended..::..NextDateTime Method (DateTime, DateTime)

Returns a random date/time that is within the indicated time span.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public DateTime NextDateTime(
	DateTime minValue,
	DateTime maxValue
)
Public Function NextDateTime ( _
	minValue As DateTime, _
	maxValue As DateTime _
) As DateTime

Parameters

minValue
Type: DateTime
The inclusive minimum value.
maxValue
Type: DateTime
The exclusive maximum value.

Return Value

Exceptions


ExceptionCondition
[ArgumentOutOfRangeException]maxValue;maxValue must be greater than or equal to minValue.