Saxonite 1.2.11.6
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Sarand.Net.Standard.Base.Helpers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -74,6 +75,15 @@ namespace Sarand.Net.Standard.Base.Utils
|
||||
return true;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>
|
||||
/// Sort the list into random order.
|
||||
/// </summary>
|
||||
public static List<T> Randomise<T>(this List<T> values)
|
||||
{
|
||||
return values.OrderBy(_ => SacsRandomHelper.GetInt32(Int32.MaxValue)).ToList();
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>
|
||||
/// Remove the specified range of items from the list to a new list.
|
||||
|
||||
Reference in New Issue
Block a user