public static int[] RandomPermutation(this RandomNumberGenerator random, int count) { int[] numbers = ToolsMathSeries.RangeInt32(count); return(numbers.OrderBy(x => random.RandomFloat32()).ToArray()); //TODO is a bit expencive }
public static int[] RandomPermutation(this RandomNumberGenerator random, int count) { int[] numbers = ToolsMathSeries.RangeInt32(count); return(numbers.OrderBy(x => random.RandomFloat32()).ToArray()); //TODO is a bit expencive }