Table of Contents

Class ListExtensions

Namespace
Vintagestory.API.Util
Assembly
VintagestoryAPI.dll
public static class ListExtensions
Inheritance
ListExtensions
Inherited Members

Methods

Shuffle<T>(List<T>, Random)

Performs a Fisher-Yates shuffle in linear time or O(n)

public static void Shuffle<T>(this List<T> array, Random rand)

Parameters

array List<T>
rand Random

Type Parameters

T

Shuffle<T>(List<T>, IRandom)

Performs a Fisher-Yates shuffle in linear time or O(n)

public static void Shuffle<T>(this List<T> array, IRandom rand)

Parameters

array List<T>
rand IRandom

Type Parameters

T