public static T GetRandomElementFromList <T>(this List <T> list, RNG rng) { return(rng.RandomElement <T>(list)); }
public static Vector2Int GetRandomValueInt(this Rect r, RNG rng) { return(new Vector2Int(r.GetXRange().RandomValuei(rng), r.GetYRange().RandomValuei(rng))); }
public static Vector2 GetRandomValue(this Rect r, RNG rng) { return(new Vector2(r.GetXRange().RandomValuef(rng), r.GetYRange().RandomValuef(rng))); }
public float RandomNormalizedValue(RNG rng) { return(NormalizedValue(rng.Rand(Min, Max))); }
public float RandomValuef(RNG rng) { return(rng.Rand(Min, Max)); }
public int RandomValuei(RNG rng) { return(rng.Rand((int)Min, (int)Max)); }