Contains helper functions for working with Weighted Randomness
More...
Contains helper functions for working with Weighted Randomness
◆ GetWeightedValue< T >()
static T JUtils.WeightedExtensions.GetWeightedValue< T > |
( |
this IList< T > |
weightedArray, |
|
|
float |
weightedIndex |
|
) |
| |
|
inlinestatic |
◆ WeightedRandom< T >() [1/4]
static T JUtils.WeightedExtensions.WeightedRandom< T > |
( |
this IList< T > |
weightedArray | ) |
|
|
inlinestatic |
Get a random weighted value using UnityEngine.Random
◆ WeightedRandom< T >() [2/4]
static T JUtils.WeightedExtensions.WeightedRandom< T > |
( |
this IList< T > |
weightedArray, |
|
|
Random |
random |
|
) |
| |
|
inlinestatic |
Get a random weighted value using System.Random
◆ WeightedRandom< T >() [3/4]
static T JUtils.WeightedExtensions.WeightedRandom< T > |
( |
this IList< Weighted< T >> |
weightedArray | ) |
|
|
inlinestatic |
Get a random weighted value using UnityEngine.Random
◆ WeightedRandom< T >() [4/4]
static T JUtils.WeightedExtensions.WeightedRandom< T > |
( |
this IList< Weighted< T >> |
weightedArray, |
|
|
Random |
random |
|
) |
| |
|
inlinestatic |
Get a random weighted value using System.Random
◆ WeightedSum< T >()
static float JUtils.WeightedExtensions.WeightedSum< T > |
( |
this IList< T > |
weightedArray | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: