public static void Shuffle <T>(T[] array) { int n = array.Length; for (int i = 0; i < n; i++) { int idx = RandomEx.Range(i, n - 1); Swap(ref array[i], ref array[idx]); } }
public float RandomRange() { return(RandomEx.Range(min, max)); }
public static double RandomRange(this Range <double> target) { return(RandomEx.Range(target.min, target.max)); }
public static float RandomRange(this Range <float> target) { return(RandomEx.Range(target.min, target.max)); }
public static int RandomRange(this Range <int> target) { return(RandomEx.Range(target.min, target.max)); }
public float MakeRandomValue() { return(RandomEx.Range(min, max)); }