StvDEV
Components
Drawing
Extensions
BasicTypesExtensions
CollectionsExtensions
ForEach
(this T[], Action
)
GetRandomIndex
(this IEnumerable
)
GetRandomIndex
(this List
)
GetRandomIndex
(this T[])
GetRandomValue
(this IEnumerable
)
GetRandomValue
(this List
)
GetRandomValue
(this T[])
IEnumerable
ForEach
(this IEnumerable
, Action
)
List
ForEach
(this List
, Action
)
ColorsExtensions
Inspector
Patterns
TextMeshPro
Types
Vibration
int GetRandomIndex<T>(this List<T> list)
Returns a random index of an item in the list.
Visibility
Public
Modifiers
static
Returns
Random item index, -1 if the collection is empty
Parameters
this List<T>
list
List