VirtualTimeSpanArray.GetShuffledElements() Method

Top 

Description

Returns a copy of the calling TimeSpanArray where the elements have been randomly shuffled. Calling SeedNoise will set the seed for this method.

 

Timing Precision Mode

This page describes functionality in nanosecond timing precision mode.

 

Method Signature

VirtualTimeSpanArray.GetShuffledElements(

)

 

 

Return Value

Type:

Array of timespan

 

 

Returns a TimeSpanArray object that contains the shuffled values of the TimeSpanArray.

 

Syntax

myTimeSpanArray1 = {TimeSpan.FromDays(1), TimeSpan.FromDays(2)}.GetShuffledElements();

 

 

See also

VirtualTimeSpanArray Object