StvDEV

 GDK

  Components

  Drawing

  Editor

  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

  TMP

  Types

  Vibration

T GetRandomValue<T>(this IEnumerable<T> collection)

Returns a random value of an item in the collection.
VisibilityPublic
Modifiersstatic
ReturnsRandom item value

Parameters

this IEnumerable&lt;T&gt; collectionCollection