ArcFM Responder Mobile Developer Guide
RandomOrder<T> Method






Taken a list of items and reorder in random(ish) order. Uses the Fisher-Yates shuffle.
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Sub RandomOrder(Of T)( _
   ByVal list As System.Collections.Generic.IList(Of T) _
) 
'Usage
 
Dim list As System.Collections.Generic.IList(Of T)
 
EnumerableExtensions.RandomOrder(Of T)(list)
[System.Runtime.CompilerServices.Extension()]
public static void RandomOrder<T>( 
   System.Collections.Generic.IList<T> list
)
public procedure RandomOrder( 
    list: System.Collections.Generic.IList
); static; 
System.Runtime.CompilerServices.ExtensionAttribute()
public static function RandomOrder( 
   list : System.Collections.Generic.IList
);
[System.Runtime.CompilerServices.Extension()]
public: static void RandomOrder<T>( 
   System.Collections.Generic.IList<T*>* list
) 
[System.Runtime.CompilerServices.Extension()]
public:
static void RandomOrdergeneric<typename T>
( 
   System.Collections.Generic.IList<T^>^ list
) 

Parameters

list

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members

Send Feedback