getrandomarrayelementunweighted - eisclimber/ExPresS-XR GitHub Wiki

RuntimeUtils.GetRandomArrayElementUnweighted(T[])

Method in RuntimeUtils

Summary

Returns a random element from an array using linear distribution.

public static T GetRandomArrayElementUnweighted<T>(T[] objects)

Parameters

Name Description
T[] objects Objects to draw from.

Type Parameters

Name Description
T Type of the object to draw.

Returns

A random object from the array.

⚠️ **GitHub.com Fallback** ⚠️